結果

問題 No.734 Careful Engineer
ユーザー finefine
提出日時 2018-09-28 21:25:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-08-02 11:23:57
合計ジャッジ時間 1,821 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,088 KB
testcase_01 AC 73 ms
15,160 KB
testcase_02 AC 68 ms
15,044 KB
testcase_03 AC 68 ms
15,152 KB
testcase_04 AC 75 ms
15,356 KB
testcase_05 AC 72 ms
15,048 KB
testcase_06 AC 69 ms
15,048 KB
testcase_07 AC 68 ms
15,092 KB
testcase_08 AC 70 ms
15,248 KB
testcase_09 AC 70 ms
15,188 KB
testcase_10 AC 69 ms
15,044 KB
testcase_11 AC 69 ms
15,044 KB
testcase_12 AC 69 ms
15,176 KB
testcase_13 AC 67 ms
15,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

a, b, c = gets.split.map(&:to_i)
a *= 60
c *= 3600

if a <= b
    p -1
else
    p (c + a - b - 1) / (a - b)
end
0