Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
85796 sh25_wuyy 根据x值,求y值 C++ 通过 0 MS 248 KB 210 2026-03-15 17:59:29

Tests(1/1):


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


测评信息: