結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-29 16:20:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 61,568 KB |
| 最終ジャッジ日時 | 2026-05-16 09:39:05 |
| 合計ジャッジ時間 | 1,692 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")