| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156641 | 万嘉宇 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 1 MS | 276 KB | 296 | 2026-07-04 13:48:50 |
#include<bits/stdc++.h> using namespace std; int main() { vector<int> a; int x, n, t,y; cin >> n; for (int i = 0; i < n; i++) { cin >> t; a.push_back(t); } a.push_back(a[0]); a.erase(a.begin()+0); for (int i = 0; i < n; i++) { cout << a[i] << " "; } return 0; }
------Input------
23 59
------Answer-----
276 1770
------Your output-----
59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59