結果

問題 No.734 Careful Engineer
ユーザー siman
提出日時 2020-08-21 04:13:37
言語 Ruby
(3.4.1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 141 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 8,064 KB
実行使用メモリ 13,056 KB
最終ジャッジ日時 2025-01-18 00:10:57
合計ジャッジ時間 2,161 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
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)

if 60 * A - B == 0
  puts 0
elsif 60 * A < B
  puts -1
else
  puts Rational(C * 3600, 60 * A - B).ceil
end
0