結果

問題 No.236 鴛鴦茶
ユーザー momotaros300momotaros300
提出日時 2019-08-24 18:36:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 410 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-08-04 15:59:48
合計ジャッジ時間 3,511 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,332 KB
testcase_01 AC 66 ms
71,304 KB
testcase_02 AC 64 ms
71,136 KB
testcase_03 AC 75 ms
71,372 KB
testcase_04 AC 101 ms
71,096 KB
testcase_05 AC 64 ms
71,100 KB
testcase_06 AC 65 ms
71,220 KB
testcase_07 AC 64 ms
71,220 KB
testcase_08 AC 67 ms
71,392 KB
testcase_09 AC 68 ms
71,432 KB
testcase_10 AC 67 ms
71,292 KB
testcase_11 AC 68 ms
71,424 KB
testcase_12 AC 66 ms
71,292 KB
testcase_13 AC 65 ms
71,424 KB
testcase_14 AC 64 ms
71,204 KB
testcase_15 AC 63 ms
71,292 KB
testcase_16 AC 64 ms
71,460 KB
testcase_17 AC 68 ms
71,324 KB
testcase_18 AC 67 ms
71,328 KB
testcase_19 AC 65 ms
71,304 KB
testcase_20 AC 64 ms
71,320 KB
testcase_21 AC 63 ms
71,348 KB
testcase_22 AC 64 ms
71,428 KB
testcase_23 AC 65 ms
71,280 KB
testcase_24 AC 64 ms
71,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,x,y=map(int,input().split())
if b*x<a*y:
	ans=x+(b*x/a)
else:
	ans=y+(a*y/b)
print(round(ans,7))


0