結果
問題 |
No.8099 夜の道路は気をつけて運転しなければならない
|
ユーザー |
|
提出日時 | 2023-03-31 22:26:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 487 ms |
コンパイル使用メモリ | 63,992 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-23 01:13:35 |
合計ジャッジ時間 | 1,077 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 7 WA * 6 |
ソースコード
#include <iostream> using namespace std; int main() { int t, s, d; cin >> t >> s >> d; double time_to_drive = (double)d / s; double time_to_drive_carefully = time_to_drive; if (t <= 6 || t + time_to_drive >= 18) { time_to_drive_carefully += ((t + time_to_drive >= 18) ? 18 - t - time_to_drive : 6 - t); } cout << time_to_drive_carefully << endl; return 0; }