#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
cin>>N;
int turn=1+N%2;
for(int i=1;i<N;i++) {
for(int i=turn;i+1<=N;i+=2)
cout<<"CMPSWP "<<"R"<<i<<" R"<<i+1<<' ';
cout<<'\n';
turn=3-turn;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
204 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
332 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
332 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
332 KB |
Expected integer, but "CMPSWP" found |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
332 KB |
Expected integer, but "CMPSWP" found |