Submission #1002698

# Submission time Handle Problem Language Result Execution time Memory
1002698 2024-06-19T18:20:13 Z gabistroeh MalnaRISC (COI21_malnarisc) C++14
10.192 / 100
6 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	int N;
	cin >> N;
	cout << (long long int)(N*(N-1))/2 << endl;
	for(int i=N-1; i>=1; i--){
		for(int j=1; j<=i; j++){
			cout << "CMPSWP R" << j << " R" << j+1 << endl;
		}
	}
}
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 5 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 4 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 4 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 6 ms 348 KB Partially correct