Pages

Friday, July 29, 2011

a053. Sagit's 計分程式


#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