結果

問題 No.734 Careful Engineer
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-10 23:42:54
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-09-30 00:16:03
合計ジャッジ時間 1,753 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,364 KB
testcase_01 WA -
testcase_02 AC 65 ms
15,280 KB
testcase_03 WA -
testcase_04 AC 66 ms
15,344 KB
testcase_05 AC 71 ms
15,344 KB
testcase_06 AC 67 ms
15,132 KB
testcase_07 AC 69 ms
15,292 KB
testcase_08 AC 68 ms
15,180 KB
testcase_09 AC 66 ms
15,052 KB
testcase_10 WA -
testcase_11 AC 68 ms
15,116 KB
testcase_12 AC 65 ms
15,152 KB
testcase_13 AC 65 ms
15,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c = gets.split.map(&:to_i)
a *= 60
c *= 60 * 60
if a < b then
    puts "-1"
else 
    puts (1..10000000).bsearch{|x| c+b*x <= a*x }
end
0