結果
問題 | No.2353 Guardian Dogs in Spring |
ユーザー |
![]() |
提出日時 | 2023-06-17 00:02:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 99 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 77,824 KB |
最終ジャッジ日時 | 2024-06-24 17:11:59 |
合計ジャッジ時間 | 8,547 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 40 |
ソースコード
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()