| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73112 | sh25_shenpy | 根据x值,求y值 | C++ | 通过 | 0 MS | 248 KB | 235 | 2025-11-05 20:39:43 |
#include <bits/stdc++.h> using namespace std; int main( ) { int x; cin>>x; if(x>=0&x<=3) { cout<<3*x-5; } else if(x>3) { cout<<"4"; } else cout<<14-2*x; return 0; }