結果

問題 No.2353 Guardian Dogs in Spring
ユーザー shogo314shogo314
提出日時 2023-06-17 10:16:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 86,680 KB
実行使用メモリ 78,288 KB
最終ジャッジ日時 2023-09-07 07:39:26
合計ジャッジ時間 11,615 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,140 KB
testcase_01 AC 70 ms
71,092 KB
testcase_02 AC 70 ms
71,324 KB
testcase_03 AC 70 ms
71,188 KB
testcase_04 AC 72 ms
71,432 KB
testcase_05 AC 129 ms
78,216 KB
testcase_06 AC 122 ms
77,888 KB
testcase_07 AC 124 ms
77,932 KB
testcase_08 AC 127 ms
77,796 KB
testcase_09 AC 121 ms
77,936 KB
testcase_10 AC 121 ms
78,000 KB
testcase_11 AC 129 ms
78,128 KB
testcase_12 AC 131 ms
77,664 KB
testcase_13 AC 125 ms
77,932 KB
testcase_14 AC 75 ms
70,952 KB
testcase_15 AC 131 ms
77,916 KB
testcase_16 AC 132 ms
77,904 KB
testcase_17 AC 131 ms
77,956 KB
testcase_18 AC 130 ms
77,788 KB
testcase_19 AC 132 ms
77,960 KB
testcase_20 AC 73 ms
71,164 KB
testcase_21 AC 103 ms
76,680 KB
testcase_22 AC 119 ms
78,108 KB
testcase_23 AC 132 ms
78,064 KB
testcase_24 AC 103 ms
76,536 KB
testcase_25 AC 100 ms
76,796 KB
testcase_26 AC 87 ms
75,868 KB
testcase_27 AC 73 ms
71,132 KB
testcase_28 AC 108 ms
77,712 KB
testcase_29 AC 125 ms
78,288 KB
testcase_30 AC 120 ms
78,068 KB
testcase_31 AC 125 ms
78,072 KB
testcase_32 AC 129 ms
77,952 KB
testcase_33 AC 122 ms
77,672 KB
testcase_34 AC 124 ms
77,936 KB
testcase_35 AC 121 ms
77,932 KB
testcase_36 AC 111 ms
77,660 KB
testcase_37 AC 90 ms
76,108 KB
testcase_38 AC 119 ms
77,952 KB
testcase_39 AC 116 ms
77,892 KB
testcase_40 AC 121 ms
77,808 KB
testcase_41 AC 120 ms
78,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
xy = [tuple(map(int, input().split())) for i in range(N)]
xyi = [(xy[i][0], xy[i][1], i+1) for i in range(N)]
xyi.sort()
print(N//2)
for i in range(N//2):
    print(xyi[2*i][2], xyi[2*i+1][2])
0