結果

問題 No.2353 Guardian Dogs in Spring
ユーザー lloyzlloyz
提出日時 2023-06-16 23:27:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 79,212 KB
最終ジャッジ日時 2023-09-06 22:31:40
合計ジャッジ時間 10,734 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,432 KB
testcase_01 AC 73 ms
71,280 KB
testcase_02 AC 74 ms
71,084 KB
testcase_03 AC 77 ms
71,552 KB
testcase_04 AC 73 ms
71,292 KB
testcase_05 AC 131 ms
78,592 KB
testcase_06 AC 130 ms
78,112 KB
testcase_07 AC 134 ms
78,124 KB
testcase_08 AC 132 ms
78,392 KB
testcase_09 AC 132 ms
78,136 KB
testcase_10 AC 131 ms
78,380 KB
testcase_11 AC 140 ms
78,916 KB
testcase_12 AC 143 ms
78,856 KB
testcase_13 AC 129 ms
78,928 KB
testcase_14 AC 75 ms
71,556 KB
testcase_15 AC 144 ms
79,212 KB
testcase_16 AC 145 ms
79,152 KB
testcase_17 AC 144 ms
79,032 KB
testcase_18 AC 149 ms
79,112 KB
testcase_19 AC 147 ms
78,820 KB
testcase_20 AC 74 ms
71,488 KB
testcase_21 AC 111 ms
77,620 KB
testcase_22 AC 129 ms
78,520 KB
testcase_23 AC 139 ms
78,800 KB
testcase_24 AC 112 ms
77,888 KB
testcase_25 AC 101 ms
76,884 KB
testcase_26 AC 97 ms
76,080 KB
testcase_27 AC 77 ms
71,480 KB
testcase_28 AC 121 ms
77,836 KB
testcase_29 AC 134 ms
78,088 KB
testcase_30 AC 134 ms
78,364 KB
testcase_31 AC 133 ms
78,432 KB
testcase_32 AC 143 ms
79,164 KB
testcase_33 AC 133 ms
78,852 KB
testcase_34 AC 131 ms
79,000 KB
testcase_35 AC 134 ms
78,928 KB
testcase_36 AC 114 ms
78,092 KB
testcase_37 AC 94 ms
76,296 KB
testcase_38 AC 126 ms
78,184 KB
testcase_39 AC 127 ms
78,292 KB
testcase_40 AC 125 ms
78,184 KB
testcase_41 AC 128 ms
78,188 KB
権限があれば一括ダウンロードができます

ソースコード

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[2 * i][2], P[2 * i + 1][2])
0