ZeroJudge & UVa Online Judge answers
#include using namespace std; int main() { int num; while(cin>>num) { if(num<=10) cout< else if(num<=20) cout<<(num-10)*2+60< else if(num<=40) cout<<(num-20)*1+80< else cout<<100< } return 0; }
No comments:
Post a Comment