結果

問題 No.734 Careful Engineer
ユーザー gemmarogemmaro
提出日時 2019-11-07 08:43:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-10-13 02:54:48
合計ジャッジ時間 3,106 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,184 KB
testcase_01 AC 78 ms
15,332 KB
testcase_02 AC 78 ms
15,032 KB
testcase_03 AC 79 ms
15,304 KB
testcase_04 AC 79 ms
15,156 KB
testcase_05 AC 78 ms
15,348 KB
testcase_06 AC 79 ms
15,264 KB
testcase_07 AC 80 ms
15,144 KB
testcase_08 AC 79 ms
15,020 KB
testcase_09 AC 79 ms
15,284 KB
testcase_10 AC 79 ms
15,156 KB
testcase_11 AC 78 ms
15,220 KB
testcase_12 AC 80 ms
15,020 KB
testcase_13 AC 80 ms
15,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

a, b, c = gets.chomp.split.map &:to_i

if 60 * a - b > 0
    p ( 3600.0 * c / ( 60 * a - b ) ).ceil
else
    p -1
end
0