結果
| 問題 | 
                            No.236 鴛鴦茶
                             | 
                    
| コンテスト | |
| ユーザー | 
                             michonz4
                         | 
                    
| 提出日時 | 2019-12-19 10:45:59 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 162 bytes | 
| コンパイル時間 | 175 ms | 
| コンパイル使用メモリ | 28,160 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-07 01:01:57 | 
| 合計ジャッジ時間 | 1,196 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 23 | 
ソースコード
#include <stdio.h>
int main() {
  double a, b, x, y;
  scanf("%lf %lf %lf %lf", &a, &b, &x, &y);
  printf("%.8lf\n", x/a*b<=y ? x/a*b+x: y/b*a+y);
  return 0;
}
            
            
            
        
            
michonz4