結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
butter_roll
|
| 提出日時 | 2016-12-11 02:27:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 227 bytes |
| コンパイル時間 | 497 ms |
| コンパイル使用メモリ | 59,520 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-29 02:23:10 |
| 合計ジャッジ時間 | 1,326 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%lf %lf %lf %lf",&vl,&vr,&d,&w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void){
double vl,vr,d,w;
scanf("%lf %lf %lf %lf",&vl,&vr,&d,&w);
printf("%.10f\n",w*(d/(vl+vr)));
return 0;
}
butter_roll