結果

問題 No.2353 Guardian Dogs in Spring
ユーザー lloyz
提出日時 2023-06-16 23:26:50
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 190 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 81,916 KB
実行使用メモリ 78,776 KB
最終ジャッジ日時 2024-06-24 16:44:38
合計ジャッジ時間 8,929 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other AC * 32 RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

P.sort(key=lambda x: (x[0], x[1]))
print(n // 2)
for i in range(0, n, 2):
    print(P[i][2], P[i + 1][2])
0