Submission #420929

#TimeUsernameProblemLanguageResultExecution timeMemory
420929HappyPacManMalnaRISC (COI21_malnarisc)C++14
10.19 / 100
2 ms460 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector<pair<int,int> > res; for(int i=1;i<=n;i++){ for(int j=i+1;j<=n;j++){ res.emplace_back(i,j); } } cout << res.size() << '\n'; for(auto u : res) cout << "CMPSWP R" << u.first << " R" << u.second << '\n'; }
#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...