Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
30215 lnx 根据x值,求y值 C++ 通过 0 MS 244 KB 195 2023-11-04 15:48:09

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x; if(0<=x&&x<=3) y=3*x-5; if(x>3) y=4; if(x<0) y=14-2*x; cout<<y; return 0; }


测评信息: