Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3121 | 张昊然 | C语言5.9 | C++ | Accepted | 1 MS | 724 KB | 255 | 2020-12-02 20:40:52 |
#include <iostream> using namespace std; int main(){ int x, y; cin >> x; if (x < 1) cout << x << endl; else if (1 < x < 10) cout << x * 2 - 1 << endl; else cout << x * 3 - 11 << endl; return 0; }