結果

問題 No.1519 Diversity
ユーザー 👑 KazunKazun
提出日時 2021-05-30 04:05:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 81,124 KB
最終ジャッジ日時 2024-04-26 07:37:11
合計ジャッジ時間 2,751 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 43 ms
51,584 KB
testcase_02 AC 38 ms
52,224 KB
testcase_03 AC 79 ms
77,024 KB
testcase_04 AC 91 ms
79,884 KB
testcase_05 AC 38 ms
51,712 KB
testcase_06 AC 97 ms
80,768 KB
testcase_07 AC 43 ms
52,864 KB
testcase_08 AC 73 ms
76,416 KB
testcase_09 AC 80 ms
77,440 KB
testcase_10 AC 88 ms
79,380 KB
testcase_11 AC 41 ms
52,224 KB
testcase_12 AC 95 ms
80,892 KB
testcase_13 AC 98 ms
80,768 KB
testcase_14 AC 98 ms
81,124 KB
testcase_15 AC 97 ms
80,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

E=[]
for u in range(1,N//2+1):
    for v in range(u+1,N-u+2):
        E.append((u,v))

"""
D=[0]*(N+1)
for u,v in E:
    D[u]+=1
    D[v]+=1
"""

print(len(E))
for u,v in E:
    print(u,v)
0