結果

問題 No.1519 Diversity
ユーザー titiatitia
提出日時 2021-05-28 23:00:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-04-25 00:52:31
合計ジャッジ時間 2,113 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,496 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 24 ms
10,624 KB
testcase_03 AC 56 ms
12,544 KB
testcase_04 AC 95 ms
14,592 KB
testcase_05 AC 25 ms
10,496 KB
testcase_06 AC 117 ms
16,128 KB
testcase_07 AC 25 ms
10,880 KB
testcase_08 AC 36 ms
11,264 KB
testcase_09 AC 62 ms
12,416 KB
testcase_10 AC 84 ms
14,208 KB
testcase_11 AC 25 ms
10,624 KB
testcase_12 AC 110 ms
15,872 KB
testcase_13 AC 114 ms
16,256 KB
testcase_14 AC 119 ms
16,256 KB
testcase_15 AC 113 ms
16,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

X=[]
j=N+1
for i in range(1,N):
    for x in range(i+1,j):
        X.append((i,x))
    j-=1

print(len(X))
for x,y in X:
    print(x,y)
0