Submission #1003613

# Submission time Handle Problem Language Result Execution time Memory
1003613 2024-06-20T13:56:29 Z leanchec MalnaRISC (COI21_malnarisc) C++17
21.5885 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

string a="CMPSWP ";

int main(){
	ios_base::sync_with_stdio(0); cin.tie(0);
	int n;
	cin >> n;
	cout << n-1 << endl;
	for(int i=0; i<n-1; i++){
		if(i&1){
			for(int j=2; j+1<=n; j+=2)
				cout << a << "R" << j << " R" << j+1 << ' ';
		}
		else{
			for(int j=1; j+1<=n; j+=2){
				cout << a << "R" << j << " R" << j+1 << ' ';
			}
		}
		cout << endl;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 348 KB Partially correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB not sorted
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 344 KB Partially correct