杭电oj
#include <iOStream>
using namespace std;
int main(void){
int a;
while(cin>>a)
{ if (a<0||a>100)
cout<<"Score is ERROR!"<<endl;
else if(a>=90&&a<=100)
cout<<"A"<<endl;
else if(a>=80&&a<=89)
cout<<"B"<<endl;
else if(a>=70&&a<=79)
cout<<"C"<<endl;
else if(a>=60&&a<=69)
cout<<"D"<<endl;
else cout<<"E"<<endl;
}
return 0;
}
相关阅读
杭电1002题,大数加法典型问题,这道题怎么说呢,说难不难,但要注意一些细节。先说一下解大数加法解题的思路,给你两个超长的数,首先,你可以
#include<iomanip> #include<iostream> using namespace std; int main() { double sum(0),a; for(int i=0;i<12;i++) { cin>
杭电OJ1092#include <iostream> using namespace std; int main() { int t=0,a=0; while(1) { int c=0;
转自:http://blog.csdn.net/jeffashan/article/details/41687347 杭电ACM2000题,对原来别人的的博客内容略有修改。 题目描述是:输入
When the old year is leaving and the New Year is coming, people are always looking back over the past while looking f