結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
![]() |
提出日時 | 2019-05-30 02:08:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-09-17 16:04:50 |
合計ジャッジ時間 | 1,218 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
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)