Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
43645 楼俊毅 C语言5.9 C++ Accepted 3 MS 272 KB 183 2022-12-23 18:56:31

Tests(1/1):


Code:

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