Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100788 | 卢语涵 | 函数求和 | C++ | Wrong Answer | 0 MS | 256 KB | 327 | 2024-12-13 21:01:21 |
#include<iostream> using namespace std; int he(int d){ int a=0,b=0,c=0; for(int i=1;i<=10;i++){ a+=i; } for(int i=20;i<=30;i++){ b+=i; } for(int i=35;i<=45;i++){ c+=i; } d=a+b+c; return d; } int main(){ int d; cout<<he(d); return 0; }
------Input------
0
------Answer-----
55 275 440
------Your output-----
770