結果

問題 No.231 めぐるはめぐる (1)
ユーザー RK PythonRK Python
提出日時 2020-06-07 21:44:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 223 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-12-23 21:41:33
合計ジャッジ時間 1,464 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
exps = [[j,[int(i) for i in input().split()]] for j in range(N)]
exps.sort(key = lambda x : x[1][0] - 30000*x[1][1], reverse=True)
best = exps[0]
exp = best[1][0] - 30000*best[1][1]
if exp*6 >= 30000*100:
    print("YES")
    print("\n".join([str(best[0] + 1)]*6))
else:
    print("NO")
0