Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130718 任紫谦 [在线测评解答教程] A+B Problem C++ Wrong Answer 1 MS 268 KB 343 2025-09-14 18:36:38

Tests(0/11):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ vector<int>a; int n=5,b; for(int i=0;i<n;i++){ a.push_back(i+1); } for(int i=0;i<10;i++){ cout<<i+1<<"."; for(int x=0;x<5;x++){ cout<<a[x]<<" "; } cout<<endl; b=a[0]; a.erase(a.begin()+0); a.push_back(b); } return 0; }


Run Info:

------Input------
87 93
------Answer-----
180
------Your output-----
1.1 2 3 4 5 2.2 3 4 5 1 3.3 4 5 1 2 4.4 5 1 2 3 5.5 1 2 3 4 6.1 2 3 4 5 7.2 3 4 5 1 8.3 4 5 1 2 9.4 5 1 2 3 10.5 1 2 3 4