結果
| 問題 | No.236 鴛鴦茶 |
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-08-28 00:31:18 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 28,608 KB |
| 最終ジャッジ日時 | 2026-02-23 22:18:46 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | 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 * (b / a) > y) printf("%.7lf\n", y + y * (a / b));
else printf("%.7lf\n", x + x * (b / a));
return 0;
}
くれちー