Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
319129 | 李南笙 | 【C1-11】计分程序 | C++ | 通过 | 100 | 1 MS | 256 KB | 242 | 2025-04-25 19:38:21 |
#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; }