結果

問題 No.231 めぐるはめぐる (1)
ユーザー c-yanc-yan
提出日時 2021-03-17 09:09:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 355 bytes
コンパイル時間 887 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 8,444 KB
最終ジャッジ日時 2023-08-09 01:36:32
合計ジャッジ時間 3,606 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,784 KB
testcase_02 AC 15 ms
7,828 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 17 ms
7,888 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
7,940 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
GD = [tuple(map(int, input().split())) for _ in range(N)]

a = [(GD[i][0] - 30000 * GD[i][1], i + 1) for i in range(N)]
a.sort(reverse=True)

for i in range(min(N, 6), 0, -1):
    b = (list(a[:i]) * 6)[:6]
    if sum(x for x, y in b) < 30000 * 100:
        continue
    print(*(y for x, y in b), sep='\n')
    break
else:
    print('NO')
0