| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139229 | 翁思宸 | 函数求和 | C++ | Wrong Answer | 0 MS | 260 KB | 821 | 2025-12-05 18:56:56 |
/* //1494 生理周期 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int p=0,e=0,i=1,d=1; cin>>p>>e>>i>>d; for(int x=p;x<=21252;x+=23){ for(int y=e;y<=21252;y+=28){ for(int z=i;z<=21252;z+=33){ if(x==y && y==z){ cout<<"the next triple peak occurs in "<<x-d<<" days."<<endl; } } } } return 0; }*/ //1495 函数求和 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int use(int n,int m){ return n+m; } int main(){ int n=1,m=10; cout<<use(n,m)<<endl; n=20; m=30; cout<<use(n,m)<<endl; n=35; m=45; cout<<use(n,m)<<endl; return 0; }
------Input------
0
------Answer-----
55 275 440
------Your output-----
11 50 80