今天为大家带来的是东方博宜OJ c++题解(部分)。
1658
#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b;
cin>>a>>b;
if(a>=60&&b<60){
cout<<"green";
}else if(a<60&&b>=60){
cout<<"green";
}else{
cout<<"red";
}
return 0;
}
1659
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n/10000==5||n%10000/1000==5||n%10000%1000/100==5||n%10000%1000%100/10==5||n%10000%1000%100%10==5){
cout<<n/10000+n%10000/1000+n%10000%1000/100+n%10000%1000%100/10+n%10000%1000%100%10;
}else{
cout<<n;
}
return 0;
}
1660
#include<bits/stdc++.h>
us