Submission #1002838

# Submission time Handle Problem Language Result Execution time Memory
1002838 2024-06-19T20:27:05 Z gabistroeh MalnaRISC (COI21_malnarisc) C++14
0 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	int N;
	cin >> N;
	cout << N << endl;
	for(int i=1; i<=N; i++){
		if(i%2) for(int j=1; j<=(N/2)+1; j+=2){
			cout << "CMPSWP R" << j << " R" << j+1 << " ";
		}
		else{
			for(int j=2; j<=((N-1)/2)*2; j+=2){
				cout << "CMPSWP R" << j << " R" << j+1 << " ";
			}
		}
		cout << endl;
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 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 0 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 344 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 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 1 ms 344 KB not sorted
2 Halted 0 ms 0 KB -