結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2016-11-23 21:48:11 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 112 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 10:22:16 |
| 合計ジャッジ時間 | 841 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 17 WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lf%lf%lf%lf",&a,&b,&x,&y);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
double a,b,x,y;
scanf("%lf%lf%lf%lf",&a,&b,&x,&y);
if(x/a>y/b){
printf("%13f\n",y*(a+b)/b);
}else {
printf("%.13lf\n",y*(a+b)/b);
}
return 0;
}
Haijinn