Submission #1002838

#TimeUsernameProblemLanguageResultExecution timeMemory
1002838gabistroehMalnaRISC (COI21_malnarisc)C++14
0 / 100
1 ms348 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...