結果
問題 |
No.651 E869120 and Driving
|
ユーザー |
|
提出日時 | 2019-06-18 10:22:27 |
言語 | OCaml (5.2.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 21,704 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 00:44:18 |
合計ジャッジ時間 | 811 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 7 |
ソースコード
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:%s\n" h' (if m' < 10 then "0" ^ string_of_int m' else string_of_int m')