結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
👑 |
提出日時 | 2021-08-29 16:20:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 1,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 612 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 61,568 KB |
最終ジャッジ日時 | 2024-11-22 06:27:30 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
n = int(input()) max_ = -1 ind = -1 for i in range(1, n + 1): g, d = map(int, input().split()) tmp = g - 30000 * d if tmp > max_: max_ = tmp ind = i if max_ >= 500000: print("YES") for _ in range(6): print(ind) else: print("NO")