結果

問題 No.2353 Guardian Dogs in Spring
ユーザー fiblonariafiblonaria
提出日時 2023-06-20 16:11:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 78,408 KB
最終ジャッジ日時 2023-09-10 11:48:56
合計ジャッジ時間 11,045 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,404 KB
testcase_01 AC 71 ms
71,504 KB
testcase_02 AC 72 ms
71,484 KB
testcase_03 AC 74 ms
71,580 KB
testcase_04 AC 72 ms
71,288 KB
testcase_05 AC 127 ms
78,344 KB
testcase_06 AC 126 ms
78,368 KB
testcase_07 AC 124 ms
78,076 KB
testcase_08 AC 126 ms
78,312 KB
testcase_09 AC 130 ms
78,172 KB
testcase_10 AC 130 ms
78,324 KB
testcase_11 AC 140 ms
78,048 KB
testcase_12 AC 144 ms
78,216 KB
testcase_13 AC 133 ms
78,264 KB
testcase_14 AC 79 ms
71,416 KB
testcase_15 AC 144 ms
78,088 KB
testcase_16 AC 136 ms
78,300 KB
testcase_17 AC 143 ms
78,304 KB
testcase_18 AC 137 ms
78,312 KB
testcase_19 AC 136 ms
78,408 KB
testcase_20 AC 75 ms
71,184 KB
testcase_21 AC 110 ms
78,256 KB
testcase_22 AC 124 ms
78,372 KB
testcase_23 AC 133 ms
78,308 KB
testcase_24 AC 107 ms
77,692 KB
testcase_25 AC 95 ms
76,612 KB
testcase_26 AC 92 ms
76,116 KB
testcase_27 AC 74 ms
71,356 KB
testcase_28 AC 114 ms
78,104 KB
testcase_29 AC 129 ms
78,344 KB
testcase_30 AC 126 ms
78,196 KB
testcase_31 AC 128 ms
78,188 KB
testcase_32 AC 134 ms
78,304 KB
testcase_33 AC 128 ms
78,344 KB
testcase_34 AC 129 ms
78,376 KB
testcase_35 AC 129 ms
78,404 KB
testcase_36 AC 116 ms
77,968 KB
testcase_37 AC 94 ms
76,068 KB
testcase_38 AC 122 ms
78,332 KB
testcase_39 AC 122 ms
78,104 KB
testcase_40 AC 123 ms
78,316 KB
testcase_41 AC 124 ms
78,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
dogs = [tuple(list(map(int, input().split())) + [i + 1]) for i in range(N)]
dogs = sorted(dogs)
print(N // 2)
for i in range(0, N - 1, 2):
	print(dogs[i][2], dogs[i + 1][2])
0