| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160407 | Kevin | C语言-分段函数 | C++ | Accepted | 1 MS | 276 KB | 203 | 2026-09-17 19:28:45 |
#include<iostream> using namespace std; int y(int n){ if(n<1) return n; else if(n>=1&&n<10) return 2*n-1; else return 3*n-11; } int main() { int x; cin>>x; cout<<y(x); return 0; }