結果

問題 No.2353 Guardian Dogs in Spring
ユーザー meruuu61779999meruuu61779999
提出日時 2023-06-17 00:02:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 79,084 KB
最終ジャッジ日時 2023-09-06 23:08:49
合計ジャッジ時間 10,829 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,648 KB
testcase_01 AC 69 ms
71,384 KB
testcase_02 AC 68 ms
71,388 KB
testcase_03 AC 72 ms
71,260 KB
testcase_04 AC 69 ms
71,384 KB
testcase_05 AC 117 ms
78,568 KB
testcase_06 AC 115 ms
78,648 KB
testcase_07 AC 114 ms
78,368 KB
testcase_08 AC 116 ms
78,556 KB
testcase_09 AC 134 ms
79,084 KB
testcase_10 AC 131 ms
78,976 KB
testcase_11 AC 124 ms
78,364 KB
testcase_12 AC 127 ms
78,600 KB
testcase_13 AC 118 ms
78,660 KB
testcase_14 AC 72 ms
71,552 KB
testcase_15 AC 126 ms
78,552 KB
testcase_16 AC 128 ms
78,644 KB
testcase_17 AC 128 ms
78,656 KB
testcase_18 AC 128 ms
78,672 KB
testcase_19 AC 128 ms
78,572 KB
testcase_20 AC 72 ms
71,112 KB
testcase_21 AC 103 ms
77,968 KB
testcase_22 AC 116 ms
78,288 KB
testcase_23 AC 126 ms
78,384 KB
testcase_24 AC 98 ms
77,036 KB
testcase_25 AC 98 ms
77,100 KB
testcase_26 AC 87 ms
75,188 KB
testcase_27 AC 71 ms
71,464 KB
testcase_28 AC 106 ms
77,940 KB
testcase_29 AC 121 ms
78,376 KB
testcase_30 AC 118 ms
78,180 KB
testcase_31 AC 119 ms
78,592 KB
testcase_32 AC 127 ms
78,396 KB
testcase_33 AC 118 ms
78,660 KB
testcase_34 AC 119 ms
78,628 KB
testcase_35 AC 120 ms
78,692 KB
testcase_36 AC 107 ms
78,220 KB
testcase_37 AC 87 ms
75,268 KB
testcase_38 AC 112 ms
78,280 KB
testcase_39 AC 113 ms
78,356 KB
testcase_40 AC 116 ms
78,664 KB
testcase_41 AC 117 ms
78,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
point = []
for pi in range(1, N + 1):
    x, y = map(int, input().split())
    point.append((x, y, pi))
point.sort()

print(len(point) // 2)
for i in range(0, N, 2):
    try:
        print(point[i][2], point[i + 1][2])
    except IndexError:
        exit()
0