結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-10-23 11:04:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 61,312 KB |
| 最終ジャッジ日時 | 2026-04-10 16:01:21 |
| 合計ジャッジ時間 | 1,628 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
n = int(input())
d = 3 * 10**4
h = 3 * 10**6
c, it = 0, 0
for i in range(n):
a, b = map(int, input().split())
a = a - b * d
if a > c:
c, it = a, i + 1
if c * 6 >= h:
print("YES", *[it] * 6, sep="\n")
else:
print("NO")
ohana