結果

問題 No.236 鴛鴦茶
ユーザー mmn15277198mmn15277198
提出日時 2020-12-02 21:41:38
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-10-11 11:59:13
合計ジャッジ時間 2,238 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,936 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 15 ms
7,872 KB
testcase_05 AC 15 ms
7,868 KB
testcase_06 AC 16 ms
7,864 KB
testcase_07 AC 16 ms
7,780 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 16 ms
7,832 KB
testcase_11 AC 16 ms
7,808 KB
testcase_12 WA -
testcase_13 AC 16 ms
7,936 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 15 ms
7,980 KB
testcase_19 WA -
testcase_20 AC 15 ms
7,804 KB
testcase_21 AC 15 ms
7,976 KB
testcase_22 AC 16 ms
7,936 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a , b , x , y = map(int,input().split())
x1 = a * y / b
y1 = b * x / a
if x1 > x:
    x1 = 0
if y1 > y:
    y1 = 0
ans = max(x1 + y , x + y1)
print(ans)

0