#23604: c++ans


leo931101 (℗™§⁕⁂‱⁇‽⁜௹﷼₯ɸʬ)

School : 國立嘉義高級中學
ID : 126498
IP address : [163.27.3.92]
Last Login :
2020-09-13 18:36:54
a053. Sagit's 計分程式 -- Sagit's 教學題 | From: [163.27.3.86] | Post Date : 2020-12-02 12:58

#include<iostream>


using namespace std;
unsigned short in;


main(){


while(cin>>in){


if(in<=10)


cout<<in*6<<endl;


 if(in>=10&&in<=20)


cout<<60+(in-10)*2<

<endl;else if(in>=20&&in<=40

 


cout<<80+(in-20)<<endl;


els


cout<<100<<endl;
}
}

 
ZeroJudge Forum