結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
|
提出日時 | 2016-12-02 23:02:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 226 bytes |
コンパイル時間 | 1,448 ms |
コンパイル使用メモリ | 159,412 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 17:46:05 |
合計ジャッジ時間 | 2,014 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:22: warning: use of ‘ll’ length modifier with ‘f’ type character has either no effect or undefined behavior [-Wformat=] 9 | printf("%.7llf\n", d/(vl+vr)*w); | ^
ソースコード
#include<bits/stdc++.h> #define double long double #define EPS (1e-6) #define rep(i,n)for(int i=0;i<n;i++) using namespace std; int main() { double vl, vr, d, w; cin >> vl >> vr >> d >> w; printf("%.7llf\n", d/(vl+vr)*w); }