Submission #414531

# Submission time Handle Problem Language Result Execution time Memory
414531 2021-05-30T15:16:59 Z medmdg MalnaRISC (COI21_malnarisc) C++14
10.192 / 100
2 ms 332 KB
#include <bits/stdc++.h>
#define ll  long long
#define endl    "\n"
using namespace std;
int main() {
    ll n;
    cin>>n;
    cout<<n*(n-1)/2<<endl;
    for(int i=1;i<n;i++){
        for(int j=i+1;j<=n;j++)
            cout<<"CMPSWP R"<<i<<" R"<<j<<endl;
    }
}
# 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 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 1 ms 204 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 204 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 2 ms 332 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 288 KB Partially correct
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 292 KB Partially correct