提交时间:2025-04-25 19:38:21

运行 ID: 319129

#include<iostream> using namespace std; int main(){ int N; cin>>N; if(N>=0&&N<=10){ cout<<N*6; }else if(N>10&&N<=20){ cout<<60+(N-10)*2; }else if(N>20&&N<=40){ cout<<80+(N-20); }else{ cout<<"100"; } return 0; }