Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
19599 杨为哲 C语言5.9 C++ Accepted 1 MS 728 KB 194 2021-11-15 16:37:19

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int x; cin>>x; if(x<1) cout<<x<<endl; if(x>=1&&x<10) cout<<2*x-1<<endl; if(x>=10) cout<<3*x-11<<endl; return 0; }