結果

問題 No.2353 Guardian Dogs in Spring
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-16 22:07:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 1,206 ms
コンパイル使用メモリ 86,496 KB
実行使用メモリ 81,704 KB
最終ジャッジ日時 2023-09-06 20:02:52
合計ジャッジ時間 13,027 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
73,072 KB
testcase_01 AC 115 ms
72,612 KB
testcase_02 AC 115 ms
72,888 KB
testcase_03 AC 112 ms
72,816 KB
testcase_04 AC 113 ms
72,760 KB
testcase_05 AC 157 ms
81,192 KB
testcase_06 AC 152 ms
81,704 KB
testcase_07 AC 152 ms
81,648 KB
testcase_08 AC 153 ms
81,344 KB
testcase_09 AC 154 ms
81,308 KB
testcase_10 AC 154 ms
81,564 KB
testcase_11 AC 163 ms
81,564 KB
testcase_12 AC 169 ms
81,472 KB
testcase_13 AC 156 ms
81,448 KB
testcase_14 AC 115 ms
72,844 KB
testcase_15 AC 167 ms
81,424 KB
testcase_16 AC 168 ms
81,208 KB
testcase_17 AC 167 ms
81,552 KB
testcase_18 AC 169 ms
81,224 KB
testcase_19 AC 171 ms
81,560 KB
testcase_20 AC 116 ms
76,468 KB
testcase_21 AC 132 ms
78,160 KB
testcase_22 AC 152 ms
80,704 KB
testcase_23 AC 163 ms
81,336 KB
testcase_24 AC 131 ms
78,180 KB
testcase_25 AC 131 ms
78,088 KB
testcase_26 AC 122 ms
78,008 KB
testcase_27 AC 116 ms
76,592 KB
testcase_28 AC 136 ms
78,568 KB
testcase_29 AC 158 ms
80,812 KB
testcase_30 AC 153 ms
80,744 KB
testcase_31 AC 155 ms
81,120 KB
testcase_32 AC 164 ms
81,476 KB
testcase_33 AC 154 ms
81,620 KB
testcase_34 AC 155 ms
81,572 KB
testcase_35 AC 153 ms
81,596 KB
testcase_36 AC 136 ms
78,172 KB
testcase_37 AC 124 ms
77,872 KB
testcase_38 AC 146 ms
80,820 KB
testcase_39 AC 149 ms
80,904 KB
testcase_40 AC 153 ms
81,200 KB
testcase_41 AC 151 ms
80,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
N = int(input())
XY = [tuple(map(int,input().split())) for _ in range(N)]
pos = {y:i for i,y in enumerate(XY)}

XY.sort()
print(N//2)
for i in range(0,N-1,2):
    x = XY[i]
    y = XY[i+1]
    print(pos[x]+1,pos[y]+1)
0