Submission #434930

# Submission time Handle Problem Language Result Execution time Memory
434930 2021-06-22T10:55:59 Z dqhungdl MalnaRISC (COI21_malnarisc) C++17
21.5885 / 100
2 ms 332 KB
#include <bits/stdc++.h>
using namespace std;

int N;

int main() {
	cin>>N;
	int turn=1+N%2;
	cout<<N-1<<'\n';
	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 not sorted
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB not sorted
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB not sorted
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB not sorted
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB not sorted
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 332 KB not sorted
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 332 KB not sorted
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 332 KB Partially correct