Submission #19705320


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

void solve() {
  int n; cin >> n;
  for(int i=0; i<2*n; i+=2) {
    cout << i % n + 1 << ' ' << (i+1) % n + 1 << '\n';
  }
}

signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  solve();
  return 0;
}

Submission Info

Submission Time
Task A - AtCoder Jumper
User chiara_kyokkou
Language C++ (GCC 9.2.1)
Score 500
Code Size 319 Byte
Status AC
Exec Time 7 ms
Memory 3628 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 12
Set Name Test Cases
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt, example1.txt
Case Name Status Exec Time Memory
000.txt AC 7 ms 3616 KB
001.txt AC 2 ms 3508 KB
002.txt AC 5 ms 3448 KB
003.txt AC 4 ms 3524 KB
004.txt AC 5 ms 3524 KB
005.txt AC 5 ms 3588 KB
006.txt AC 2 ms 3448 KB
007.txt AC 5 ms 3560 KB
008.txt AC 2 ms 3628 KB
009.txt AC 2 ms 3624 KB
example0.txt AC 2 ms 3464 KB
example1.txt AC 2 ms 3444 KB