結果

問題 No.2353 Guardian Dogs in Spring
ユーザー yabityabit
提出日時 2023-06-18 13:05:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 710 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 79,112 KB
最終ジャッジ日時 2023-09-08 08:58:34
合計ジャッジ時間 11,621 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,240 KB
testcase_01 AC 74 ms
71,204 KB
testcase_02 AC 74 ms
71,304 KB
testcase_03 AC 72 ms
71,300 KB
testcase_04 AC 74 ms
71,420 KB
testcase_05 AC 136 ms
79,076 KB
testcase_06 AC 131 ms
78,384 KB
testcase_07 AC 136 ms
78,932 KB
testcase_08 AC 134 ms
79,052 KB
testcase_09 AC 133 ms
78,872 KB
testcase_10 AC 138 ms
79,048 KB
testcase_11 AC 137 ms
78,768 KB
testcase_12 AC 139 ms
78,952 KB
testcase_13 AC 138 ms
78,904 KB
testcase_14 AC 76 ms
71,248 KB
testcase_15 AC 152 ms
78,788 KB
testcase_16 AC 153 ms
78,836 KB
testcase_17 AC 153 ms
78,844 KB
testcase_18 AC 151 ms
78,684 KB
testcase_19 AC 151 ms
79,112 KB
testcase_20 AC 76 ms
71,300 KB
testcase_21 AC 112 ms
77,644 KB
testcase_22 AC 133 ms
78,240 KB
testcase_23 AC 148 ms
78,684 KB
testcase_24 AC 111 ms
77,780 KB
testcase_25 AC 100 ms
76,292 KB
testcase_26 AC 93 ms
75,972 KB
testcase_27 AC 77 ms
71,268 KB
testcase_28 AC 119 ms
77,820 KB
testcase_29 AC 140 ms
78,388 KB
testcase_30 AC 136 ms
78,268 KB
testcase_31 AC 138 ms
78,336 KB
testcase_32 AC 147 ms
78,756 KB
testcase_33 AC 145 ms
79,076 KB
testcase_34 AC 143 ms
78,840 KB
testcase_35 AC 145 ms
78,872 KB
testcase_36 AC 122 ms
77,872 KB
testcase_37 AC 96 ms
76,088 KB
testcase_38 AC 131 ms
78,396 KB
testcase_39 AC 128 ms
78,020 KB
testcase_40 AC 133 ms
78,296 KB
testcase_41 AC 137 ms
78,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
XY = [list(map(int, input().split())) + [i + 1] for i in range(N)]
XY.sort(key=lambda x: x[1])
XY.sort()
ans = []
for i in range(N // 2):
    ans.append((XY[2 * i][2], XY[2 * i + 1][2]))
print(N // 2)
for x, y in ans:
    print(x, y)
0