結果

問題 No.2353 Guardian Dogs in Spring
ユーザー ntudantuda
提出日時 2023-06-17 13:10:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 86,752 KB
実行使用メモリ 78,916 KB
最終ジャッジ日時 2023-09-07 09:55:50
合計ジャッジ時間 11,644 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,436 KB
testcase_01 AC 76 ms
71,140 KB
testcase_02 AC 77 ms
71,196 KB
testcase_03 AC 74 ms
71,268 KB
testcase_04 AC 75 ms
71,040 KB
testcase_05 AC 125 ms
78,140 KB
testcase_06 AC 125 ms
78,400 KB
testcase_07 AC 123 ms
78,388 KB
testcase_08 AC 124 ms
78,572 KB
testcase_09 AC 140 ms
78,916 KB
testcase_10 AC 139 ms
78,840 KB
testcase_11 AC 127 ms
78,436 KB
testcase_12 AC 132 ms
78,176 KB
testcase_13 AC 122 ms
78,220 KB
testcase_14 AC 76 ms
71,300 KB
testcase_15 AC 130 ms
78,452 KB
testcase_16 AC 133 ms
78,164 KB
testcase_17 AC 133 ms
78,312 KB
testcase_18 AC 134 ms
78,516 KB
testcase_19 AC 137 ms
78,336 KB
testcase_20 AC 75 ms
71,000 KB
testcase_21 AC 111 ms
77,964 KB
testcase_22 AC 119 ms
78,104 KB
testcase_23 AC 129 ms
78,632 KB
testcase_24 AC 104 ms
76,860 KB
testcase_25 AC 102 ms
76,904 KB
testcase_26 AC 89 ms
75,488 KB
testcase_27 AC 76 ms
71,460 KB
testcase_28 AC 114 ms
78,004 KB
testcase_29 AC 126 ms
78,164 KB
testcase_30 AC 125 ms
77,768 KB
testcase_31 AC 127 ms
78,252 KB
testcase_32 AC 134 ms
78,500 KB
testcase_33 AC 123 ms
78,260 KB
testcase_34 AC 124 ms
78,216 KB
testcase_35 AC 122 ms
78,504 KB
testcase_36 AC 113 ms
77,896 KB
testcase_37 AC 93 ms
75,360 KB
testcase_38 AC 119 ms
77,900 KB
testcase_39 AC 121 ms
78,100 KB
testcase_40 AC 123 ms
78,416 KB
testcase_41 AC 122 ms
78,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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