結果
| 問題 |
No.8099 夜の道路は気をつけて運転しなければならない
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-31 22:28:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 381 bytes |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 69,900 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-23 01:16:07 |
| 合計ジャッジ時間 | 1,167 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 12 WA * 1 |
ソースコード
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int t, s, d;
cin >> t >> s >> d;
double time = (double) d / s;
if (time <= 1.0 * (24 - t)) {
cout << fixed << setprecision(10) << time << endl;
} else {
cout << fixed << setprecision(10) << (double)(d - s * (24 - t)) / (2 * s) + (24 - t) << endl;
}
return 0;
}