結果

問題 No.236 鴛鴦茶
ユーザー LeonardoneLeonardone
提出日時 2015-10-17 19:08:44
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 215 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,268 KB
最終ジャッジ日時 2023-09-29 16:48:47
合計ジャッジ時間 4,157 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
14,960 KB
testcase_01 AC 70 ms
15,152 KB
testcase_02 AC 66 ms
15,064 KB
testcase_03 AC 67 ms
15,260 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 68 ms
15,096 KB
testcase_07 AC 69 ms
15,256 KB
testcase_08 AC 71 ms
15,248 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 66 ms
15,076 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 68 ms
15,080 KB
testcase_21 AC 68 ms
15,176 KB
testcase_22 RE -
testcase_23 AC 68 ms
15,244 KB
testcase_24 AC 68 ms
15,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#! ruby
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

A, B, X, Y = gets.chomp.split.map(&:to_f)

case A * Y <=> B * X
when -1
	pust (Y + A * Y / B) 
when 0
	puts (X + Y)
when 1
	puts (X + B * X / A)
end
0