Submission #520553

#TimeUsernameProblemLanguageResultExecution timeMemory
520553topovikMalnaRISC (COI21_malnarisc)C++14
20 / 100
2 ms332 KiB
#include <bits/stdc++.h> #pragma GCC optimize("unroll-loops") #define pb push_back #define f first #define s second using namespace std; typedef long long ll; typedef long double ld; const ll oo = 1e18; const ld eps = 1e-9; const int N = 1e3; const int M = 6e5; int main() { ios_base::sync_with_stdio(0); iostream::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; cout << (n - 1) * 2 << endl; for (int i = 0; i < (n - 1); i++) { for (int j = 0; j + 1 < n; j += 2) cout << "CMPSWP R" << j + 1 << " R" << j + 2 << " "; cout << endl; for (int j = 1; j + 1 < n; j += 2) cout << "CMPSWP R" << j + 1 << " R" << j + 2 << " "; 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...