Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
309405 黄浙峰老师 【C5-1】分段函数 C++ 通过 100 6 MS 252 KB 219 2025-02-20 19:56:13

Tests(10/10):


#include<iostream> using namespace std; int y(int x){ if(x<1){ return x; } else if(x<10){ return 2*x-1; } else{ return 3*x-11; } } int main () { int x; cin>>x; cout<<y(x); return 0; }


测评信息: