Submission #420929

# Submission time Handle Problem Language Result Execution time Memory
420929 2021-06-08T14:57:57 Z HappyPacMan MalnaRISC (COI21_malnarisc) C++14
10.192 / 100
2 ms 460 KB
#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 time Memory Grader output
1 Partially correct 1 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 460 KB Partially correct