結果
| 問題 |
No.8099 夜の道路は気をつけて運転しなければならない
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-31 23:00:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 389 bytes |
| コンパイル時間 | 1,767 ms |
| コンパイル使用メモリ | 194,084 KB |
| 最終ジャッジ日時 | 2025-02-11 21:34:39 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for (int i=0;i<(int)(n);i++)
int main(){
int t,s,d;
cin>>t>>s>>d;
double tm=double(d)/s;
double ans=0;
t+=24-6;
t%=24;
if(t>12){
ans-=t-12;
}
tm+=t;
while(tm>24){
ans+=12;
tm-=24;
}
if(tm>12){
ans+=tm-12;
}
cout<<fixed<<setprecision(10);
cout<<ans<<endl;
}