結果

問題 No.231 めぐるはめぐる (1)
ユーザー iad_2889iad_2889
提出日時 2019-05-30 02:08:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 371 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 11,868 KB
実行使用メモリ 10,468 KB
最終ジャッジ日時 2023-10-17 18:48:58
合計ジャッジ時間 1,313 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
10,468 KB
testcase_01 AC 32 ms
10,380 KB
testcase_02 AC 30 ms
10,376 KB
testcase_03 AC 33 ms
10,432 KB
testcase_04 AC 33 ms
10,460 KB
testcase_05 AC 32 ms
10,404 KB
testcase_06 AC 33 ms
10,432 KB
testcase_07 AC 31 ms
10,384 KB
testcase_08 AC 32 ms
10,400 KB
testcase_09 AC 30 ms
10,368 KB
testcase_10 AC 30 ms
10,368 KB
testcase_11 AC 30 ms
10,368 KB
testcase_12 AC 33 ms
10,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from random import choices as ch

NEXT_LEVEL = 3000000
PENALTY = 30000


def is_nice_stage(exp, death):
    return (exp-death*PENALTY) >= NEXT_LEVEL/6


N = int(input())
stage = [(x+1, is_nice_stage(*map(int, input().split()))) for x in range(N)]
stage = [x[0] for x in stage if x[1]]
ans = "NO"
if stage:
    ans = "YES\n"+"\n".join(map(str, ch(stage, k=6)))
print(ans)
0