結果

問題 No.734 Careful Engineer
コンテスト
ユーザー tanson
提出日時 2025-11-17 00:11:21
言語 Standard ML
(MLton 20210117)
結果
RE  
実行時間 -
コード長 573 bytes
コンパイル時間 3,741 ms
コンパイル使用メモリ 687,224 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2025-11-17 00:11:26
合計ジャッジ時間 4,222 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fun readInt () =
    valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)


fun intString n =
    if 0 <= n
    then Int.toString n
    else "-" ^ Int.toString (abs n)


val () =
    let
        val a = readInt ()
        val b = readInt ()
        val c = readInt ()
       
        val ans =
            if 60 * a <= b then ~1
            else
                ( if c * 60 * 60 mod (60 * a - b) = 0
                  then c * 60 * 60 div (60 * a - b)
                  else c * 60 * 60 div (60 * a - b) + 1 )
    in
        print (intString ans ^ "\n")
    end
0