結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 16:14:54 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2026-10-13 01:20:50 |
| 合計ジャッジ時間 | 2,898 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
u,d,w = input().split('\n')
ul,ur = list(map(int,u.split('\n')))
d,w = int(d),int(w)
result = 0
while d:
result += d
m = d/(ur+w)
d -= (ur+ul)*m
if d:
result += d
m = d/(ur+w)
d -= (ur+ul)*m
else:
break
print(result)