結果

問題 No.651 E869120 and Driving
ユーザー maimai8
提出日時 2019-06-18 10:18:39
言語 OCaml
(5.2.1)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 21,572 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 00:44:01
合計ジャッジ時間 781 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

let () =
    let a = Scanf.scanf "%d\n" (fun x -> x) in 
    let m = ((float_of_int a) /. 100.) *. 60. in
    let h = m /. 60. in
    let m' = if h = 0. then int_of_float m else (int_of_float m) mod 60 in 
    let h' = 10 + (int_of_float h) in 
    Printf.printf "%d:%d\n" h' m'
0