結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:14:27 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 2,000 ms |
| + 215µs | |
| コード長 | 396 bytes |
| 記録 | |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 65,336 KB |
| 実行使用メモリ | 54,656 KB |
| 最終ジャッジ日時 | 2026-10-13 01:27:38 |
| 合計ジャッジ時間 | 2,564 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
vl, vr = map(int, input().split())
d = int(input())
w = int(input())
total_time = d / (vl + vr)
total_distance = w * total_time
# Formatting the output to have up to 10 decimal places and removing trailing zeros
formatted_output = "{0:.10f}".format(total_distance).rstrip('0').rstrip('.') if '.' in "{0:.10f}".format(total_distance) else "{0:.0f}".format(total_distance)
print(formatted_output)
lam6er