結果
問題 |
No.450 ベー君のシャトルラン
|
ユーザー |
|
提出日時 | 2022-09-07 16:14:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-22 21:14:00 |
合計ジャッジ時間 | 1,502 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 20 |
ソースコード
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)