Submission #1116120

# Submission time Handle Problem Language Result Execution time Memory
1116120 2024-11-21T09:19:38 Z epicci23 MalnaRISC (COI21_malnarisc) C++17
0 / 100
3 ms 592 KB
#include "bits/stdc++.h"
#define int long long
#define all(v) v.begin() , v.end()
#define sz(a) (int)a.size()
using namespace std;

void _(){
  int n;
  cin >> n;

  for(int i=1;i<=2*n;i++){
  	int p = 2;
  	if(i&1) p = 1;
    
    int ok = 0;

    while(p<n){
      if(ok) cout << ' ';
      cout << "CMPSWP " << "R" << p << ' ' << "R" << p+1;
      p+=2;
      ok=1;
    }
    if(ok) cout << '\n';
  }
}

int32_t main(){
  cin.tie(0); ios::sync_with_stdio(0);
  int tc=1;//cin >> tc;
  while(tc--) _();
  return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 508 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 336 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 592 KB Expected integer, but "CMPSWP" found
2 Halted 0 ms 0 KB -