結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-07-05 22:38:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 34,660 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-07 23:19:14 |
| 合計ジャッジ時間 | 1,125 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:27: warning: too many arguments for format [-Wformat-extra-args]
6 | int a,b,x,y;scanf("%d%d%d",&a,&b,&x,&y);
| ^~~~~~~~
main.cpp:6:26: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | int a,b,x,y;scanf("%d%d%d",&a,&b,&x,&y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
int a,b,x,y;scanf("%d%d%d",&a,&b,&x,&y);
printf("%.7f\n",min((double)x/a,(double)y/b)*2);
return 0;
}
184