Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
48410 张俊杰 C语言5.9 C++ Accepted 4 MS 272 KB 245 2023-05-27 21:15:39

Tests(1/1):


Code:

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