結果

問題 No.1519 Diversity
ユーザー marroncastlemarroncastle
提出日時 2021-05-28 21:01:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 1,801 ms
コンパイル使用メモリ 85,860 KB
実行使用メモリ 81,908 KB
最終ジャッジ日時 2023-08-07 05:04:53
合計ジャッジ時間 4,201 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,936 KB
testcase_01 AC 74 ms
70,920 KB
testcase_02 AC 73 ms
71,020 KB
testcase_03 AC 109 ms
78,032 KB
testcase_04 AC 114 ms
80,940 KB
testcase_05 AC 72 ms
70,884 KB
testcase_06 AC 122 ms
81,560 KB
testcase_07 AC 75 ms
71,212 KB
testcase_08 AC 97 ms
77,172 KB
testcase_09 AC 101 ms
78,368 KB
testcase_10 AC 112 ms
80,144 KB
testcase_11 AC 74 ms
70,976 KB
testcase_12 AC 118 ms
81,528 KB
testcase_13 AC 119 ms
81,800 KB
testcase_14 AC 118 ms
81,908 KB
testcase_15 AC 118 ms
81,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = []
for i in range(N):
  for j in range(i+1,N-i):
    ans.append((i+1,j+1))
print(len(ans))
for a in ans:
  print(*a)
0