結果
| 問題 |
No.1980 [Cherry 4th Tune D] 停止距離
|
| コンテスト | |
| ユーザー |
nyya
|
| 提出日時 | 2022-06-17 21:52:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 402 bytes |
| コンパイル時間 | 1,732 ms |
| コンパイル使用メモリ | 167,408 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-09 07:37:44 |
| 合計ジャッジ時間 | 20,762 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void solve(){
double t,mu,l;
cin >> t >> mu >> l;
double ue,sita;
sita=mu*t;
sita+=sqrt((mu*t)*(mu*t)+0.2*mu*l);
ue=2*mu*l;
int ans= ue*360/sita;
cout << fixed << setprecision(2) << (double) ans/100 << endl;
}
int main(){
int n;
cin >> n;
for(int i=0;i<n;i++){
solve();
}
return 0;
}
nyya