結果

問題 No.2353 Guardian Dogs in Spring
ユーザー KudeKude
提出日時 2023-06-16 22:07:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 78,472 KB
最終ジャッジ日時 2023-09-06 20:03:17
合計ジャッジ時間 9,884 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,176 KB
testcase_01 AC 69 ms
71,300 KB
testcase_02 AC 72 ms
71,112 KB
testcase_03 AC 71 ms
71,500 KB
testcase_04 AC 68 ms
71,440 KB
testcase_05 AC 115 ms
78,356 KB
testcase_06 AC 113 ms
78,336 KB
testcase_07 AC 112 ms
78,088 KB
testcase_08 AC 113 ms
78,348 KB
testcase_09 AC 107 ms
78,252 KB
testcase_10 AC 108 ms
78,248 KB
testcase_11 AC 115 ms
78,228 KB
testcase_12 AC 118 ms
78,160 KB
testcase_13 AC 113 ms
78,236 KB
testcase_14 AC 67 ms
71,108 KB
testcase_15 AC 122 ms
78,172 KB
testcase_16 AC 121 ms
78,128 KB
testcase_17 AC 130 ms
78,124 KB
testcase_18 AC 125 ms
78,092 KB
testcase_19 AC 126 ms
78,168 KB
testcase_20 AC 69 ms
71,516 KB
testcase_21 AC 101 ms
77,672 KB
testcase_22 AC 110 ms
78,200 KB
testcase_23 AC 118 ms
78,084 KB
testcase_24 AC 97 ms
77,128 KB
testcase_25 AC 89 ms
77,088 KB
testcase_26 AC 83 ms
76,128 KB
testcase_27 AC 66 ms
71,496 KB
testcase_28 AC 104 ms
77,752 KB
testcase_29 AC 115 ms
78,048 KB
testcase_30 AC 118 ms
77,916 KB
testcase_31 AC 109 ms
78,356 KB
testcase_32 AC 117 ms
78,320 KB
testcase_33 AC 112 ms
78,176 KB
testcase_34 AC 116 ms
78,164 KB
testcase_35 AC 114 ms
78,292 KB
testcase_36 AC 104 ms
78,016 KB
testcase_37 AC 80 ms
76,128 KB
testcase_38 AC 107 ms
78,208 KB
testcase_39 AC 106 ms
78,292 KB
testcase_40 AC 113 ms
78,472 KB
testcase_41 AC 114 ms
78,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
ord = sorted(range(n), key=lambda i: xy[i])
print(n // 2)
for i, j in zip(ord[0::2], ord[1::2]):
    print(i + 1, j + 1)
0