結果

問題 No.1519 Diversity
ユーザー nasubi24nasubi24
提出日時 2021-05-28 21:13:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 86,528 KB
最終ジャッジ日時 2023-08-07 05:21:22
合計ジャッジ時間 3,345 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,080 KB
testcase_01 AC 71 ms
71,076 KB
testcase_02 AC 71 ms
70,940 KB
testcase_03 AC 105 ms
79,484 KB
testcase_04 AC 125 ms
83,768 KB
testcase_05 AC 72 ms
71,072 KB
testcase_06 AC 128 ms
86,124 KB
testcase_07 AC 73 ms
71,044 KB
testcase_08 AC 97 ms
77,812 KB
testcase_09 AC 107 ms
79,496 KB
testcase_10 AC 119 ms
83,356 KB
testcase_11 AC 75 ms
71,160 KB
testcase_12 AC 128 ms
86,244 KB
testcase_13 AC 130 ms
86,148 KB
testcase_14 AC 131 ms
86,528 KB
testcase_15 AC 132 ms
86,200 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 i in ans:
    print(*i)
0