Submission #434928

# Submission time Handle Problem Language Result Execution time Memory
434928 2021-06-22T10:55:17 Z dqhungdl MalnaRISC (COI21_malnarisc) C++17
0 / 100
3 ms 332 KB
#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