結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-01 12:39:01 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 190 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 15:33:39 |
| 合計ジャッジ時間 | 961 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%ld %ld",&v1,&v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%ld",&d);
| ^~~~~~~~~~~~~~~
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%ld",&w);
| ^~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
long v1,v2,d,w;
scanf("%ld %ld",&v1,&v2);
scanf("%ld",&d);
scanf("%ld",&w);
printf("%f\n",(double)w*(double)d/((double)v1+(double)v2));
return 0;
}