| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74304 | 王郡翊 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 0 MS | 276 KB | 179 | 2024-05-25 09:12:36 |
#include<iostream> #include<cstdio> using namespace std; int main() { int n,m; cin >> n>>m; int s = 0; for (int i = n; i <= m; i++) { s += i; } cout << s; }
------Input------
23 59
------Answer-----
276 1770
------Your output-----
1517