Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
319129 | 李南笙 | 【C1-11】计分程序 | C++ | Accepted | 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; }