Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78336 冯诚阳 C语言5.9 C++ Accepted 0 MS 272 KB 256 2024-06-18 18:52:20

Tests(1/1):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { int x; cin>>x; if(x<1) cout<<x<<endl; else if(x<10) cout<<2*x-1<<endl; else if(x>=10) cout<<3*x-11<<endl; return 0; }