Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
12308 杨振航 C语言5.9 C++ Accepted 1 MS 728 KB 206 2021-05-20 16:13:56

Tests(1/1):


Code:

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