結果

問題 No.2353 Guardian Dogs in Spring
ユーザー titiatitia
提出日時 2023-06-16 21:54:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 314 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 82,432 KB
最終ジャッジ日時 2023-09-06 19:31:27
合計ジャッジ時間 12,757 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 78 ms
71,464 KB
testcase_02 AC 77 ms
71,452 KB
testcase_03 AC 76 ms
71,260 KB
testcase_04 AC 77 ms
71,452 KB
testcase_05 AC 112 ms
78,636 KB
testcase_06 AC 113 ms
78,688 KB
testcase_07 AC 114 ms
78,604 KB
testcase_08 AC 110 ms
78,408 KB
testcase_09 AC 111 ms
78,692 KB
testcase_10 AC 113 ms
78,720 KB
testcase_11 AC 117 ms
78,412 KB
testcase_12 AC 117 ms
78,624 KB
testcase_13 AC 113 ms
78,632 KB
testcase_14 AC 78 ms
71,336 KB
testcase_15 AC 124 ms
78,612 KB
testcase_16 AC 120 ms
78,560 KB
testcase_17 AC 121 ms
78,708 KB
testcase_18 AC 120 ms
78,408 KB
testcase_19 AC 120 ms
78,744 KB
testcase_20 AC 75 ms
71,296 KB
testcase_21 AC 94 ms
76,896 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 86 ms
76,540 KB
testcase_27 AC 78 ms
71,272 KB
testcase_28 AC 100 ms
76,960 KB
testcase_29 AC 113 ms
78,424 KB
testcase_30 RE -
testcase_31 AC 113 ms
78,232 KB
testcase_32 AC 120 ms
78,800 KB
testcase_33 AC 113 ms
78,412 KB
testcase_34 AC 114 ms
78,624 KB
testcase_35 AC 116 ms
78,524 KB
testcase_36 AC 100 ms
76,960 KB
testcase_37 AC 90 ms
76,644 KB
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 112 ms
78,652 KB
testcase_41 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

from operator import itemgetter

N=int(input())
P=[list(map(int,input().split()))+[i+1] for i in range(N)]

P.sort(key=itemgetter(0))
P.sort(key=itemgetter(1))

ANS=[]

for i in range(0,N,2):
    ANS.append((P[i][2],P[i+1][2]))

print(len(ANS))
for x,y in ANS:
    print(x,y)
0