結果

問題 No.2353 Guardian Dogs in Spring
ユーザー lloyzlloyz
提出日時 2023-06-16 23:26:50
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 190 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 83,944 KB
最終ジャッジ日時 2023-09-06 22:30:48
合計ジャッジ時間 11,801 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 74 ms
71,276 KB
testcase_02 AC 71 ms
71,224 KB
testcase_03 AC 72 ms
71,480 KB
testcase_04 AC 75 ms
71,584 KB
testcase_05 AC 130 ms
78,396 KB
testcase_06 AC 131 ms
78,316 KB
testcase_07 AC 128 ms
78,376 KB
testcase_08 AC 129 ms
78,404 KB
testcase_09 AC 127 ms
78,140 KB
testcase_10 AC 130 ms
78,376 KB
testcase_11 AC 135 ms
78,776 KB
testcase_12 AC 143 ms
79,028 KB
testcase_13 AC 133 ms
78,728 KB
testcase_14 AC 76 ms
71,388 KB
testcase_15 AC 143 ms
79,140 KB
testcase_16 AC 141 ms
79,396 KB
testcase_17 AC 146 ms
79,148 KB
testcase_18 AC 143 ms
79,304 KB
testcase_19 AC 144 ms
79,220 KB
testcase_20 AC 75 ms
71,544 KB
testcase_21 AC 109 ms
77,912 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 92 ms
76,364 KB
testcase_27 AC 77 ms
71,220 KB
testcase_28 AC 118 ms
77,872 KB
testcase_29 AC 132 ms
78,176 KB
testcase_30 RE -
testcase_31 AC 129 ms
78,220 KB
testcase_32 AC 141 ms
79,264 KB
testcase_33 AC 132 ms
78,904 KB
testcase_34 AC 131 ms
79,020 KB
testcase_35 AC 134 ms
78,812 KB
testcase_36 AC 117 ms
78,116 KB
testcase_37 AC 93 ms
75,964 KB
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 127 ms
78,364 KB
testcase_41 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
P = [list(map(int, input().split())) + [i + 1] for i in range(n)]

P.sort(key=lambda x: (x[0], x[1]))
print(n // 2)
for i in range(0, n, 2):
    print(P[i][2], P[i + 1][2])
0