結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-28 15:00:35 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 1,000 ms |
| + 346µs | |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 81,476 KB |
| 実行使用メモリ | 64,444 KB |
| 最終ジャッジ日時 | 2026-09-21 15:34:20 |
| 合計ジャッジ時間 | 2,071 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
N = int(input())
g = 0
x = 0
for i in range(N):
G, D = map(int, input().split())
if G - 30000 * D > g:
g = G - 30000 * D
x = i + 1
if g * 6 >= 3000000:
print('YES')
print(x, x, x, x, x, x, sep='\n')
else:
print('NO')