Submission #3545399
Source Code Expand
#include<string> #include<iostream> using namespace std; long long a,b[10]={1,2,3,4,5,6},now; int main() { cin>>a; a=a%30;//算周期的第几个 for(int s=0;s<a;s++)//模拟 { swap(b[now],b[now+1]); now++; if(now==5)now=0; } for(int s=0;s<6;s++) { cout<<b[s]; } cout<<endl;//要回车,题目说过:また、出力の末尾には改行を入れること。 return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 入れ替え |
User | luogu_bot3 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 470 Byte |
Status | CE |
Compile Error
./Main.cpp:21:5: error: stray ‘\357’ in program } ^ ./Main.cpp:21:5: error: stray ‘\275’ in program ./Main.cpp:21:5: error: stray ‘\235’ in program ./Main.cpp: In function ‘int main()’: ./Main.cpp:20:13: error: expected ‘}’ at end of input return 0; ^