Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
43726 | 刁泓烨 | C语言5.9 | C++ | Accepted | 2 MS | 272 KB | 209 | 2023-01-04 21:03:08 |
#include<bits/stdc++.h> using namespace std; int main() { int x; cin>>x; if(x<1){ cout<<x; } else if(x<=10 && x>1){ cout<<2*x-1; }else{ cout<<3*x-11; } cout<<endl; return 0; }