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