結果

問題 No.2353 Guardian Dogs in Spring
ユーザー chankei271828chankei271828
提出日時 2023-06-16 22:12:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 301 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 80,388 KB
最終ジャッジ日時 2023-09-06 20:11:39
合計ジャッジ時間 10,948 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
72,064 KB
testcase_01 AC 77 ms
72,160 KB
testcase_02 AC 75 ms
72,104 KB
testcase_03 AC 77 ms
72,112 KB
testcase_04 AC 76 ms
72,444 KB
testcase_05 AC 128 ms
80,192 KB
testcase_06 AC 123 ms
80,388 KB
testcase_07 AC 122 ms
80,164 KB
testcase_08 AC 125 ms
80,244 KB
testcase_09 AC 127 ms
80,224 KB
testcase_10 AC 125 ms
79,832 KB
testcase_11 AC 128 ms
80,348 KB
testcase_12 AC 131 ms
79,728 KB
testcase_13 AC 128 ms
80,052 KB
testcase_14 AC 77 ms
72,612 KB
testcase_15 AC 131 ms
79,712 KB
testcase_16 AC 128 ms
80,012 KB
testcase_17 AC 126 ms
80,188 KB
testcase_18 AC 129 ms
80,092 KB
testcase_19 AC 140 ms
80,072 KB
testcase_20 AC 77 ms
72,564 KB
testcase_21 AC 104 ms
78,596 KB
testcase_22 AC 125 ms
79,564 KB
testcase_23 AC 125 ms
79,860 KB
testcase_24 AC 105 ms
78,536 KB
testcase_25 AC 105 ms
78,400 KB
testcase_26 AC 100 ms
77,344 KB
testcase_27 AC 81 ms
72,332 KB
testcase_28 AC 117 ms
78,616 KB
testcase_29 AC 122 ms
79,608 KB
testcase_30 AC 121 ms
79,324 KB
testcase_31 AC 126 ms
79,956 KB
testcase_32 AC 132 ms
80,064 KB
testcase_33 AC 127 ms
80,084 KB
testcase_34 AC 131 ms
80,320 KB
testcase_35 AC 126 ms
80,208 KB
testcase_36 AC 114 ms
78,788 KB
testcase_37 AC 95 ms
77,412 KB
testcase_38 AC 121 ms
79,376 KB
testcase_39 AC 118 ms
79,348 KB
testcase_40 AC 127 ms
79,640 KB
testcase_41 AC 129 ms
80,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
N=int(input())
a=random.randrange(10000,100000000)
b=random.randrange(10000,100000000)
p=[tuple(map(int,input().split())) for _ in range(N)]
l=[(i,a*p[i][0]+b*p[i][1]) for i in range(N)]
l.sort(key=lambda tup:tup[1])
print(N//2)
for i in range(N//2):
    print(l[2*i][0]+1,l[2*i+1][0]+1)
0