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