Submission #1002747

# Submission time Handle Problem Language Result Execution time Memory
1002747 2024-06-19T19:17:53 Z Juan MalnaRISC (COI21_malnarisc) C++17
10.192 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

void print(int x){
	cout << "R" << x << " ";
}

int main(){
	int n; cin >> n;
	cout << (n*n-n)/2 << '\n';
	for(int i=1; i<=n; i++){
		for(int j=i+1; j<=n; j++){
			cout << "CMPSWP ";
			print(i), print(j);
			cout << '\n';
		}
	}
}
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 344 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 344 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 344 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 344 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 344 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 344 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 344 KB Partially correct