結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2016-12-14 10:03:45 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 187 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 20,736 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-30 07:06:13 |
| 合計ジャッジ時間 | 1,200 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d%d", &vl, &vr);
| ^~~~~~~~~~~~~~~~~~~~~~~
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d", &d);
| ^~~~~~~~~~~~~~~
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d", &w);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int vl, vr;
int d;
int w;
scanf("%d%d", &vl, &vr);
scanf("%d", &d);
scanf("%d", &w);
printf("%f\n", (double)d / ( vl + vr) * w);
return 0;
}
suppy193