結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2016-10-09 00:48:30 |
言語 | OCaml (5.1.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 329 ms |
コンパイル使用メモリ | 19,436 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 23:51:40 |
合計ジャッジ時間 | 867 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,248 KB |
testcase_02 | AC | 1 ms
5,248 KB |
testcase_03 | AC | 1 ms
5,248 KB |
testcase_04 | AC | 1 ms
5,248 KB |
testcase_05 | AC | 1 ms
5,248 KB |
testcase_06 | AC | 1 ms
5,248 KB |
testcase_07 | AC | 2 ms
5,248 KB |
testcase_08 | AC | 1 ms
5,248 KB |
testcase_09 | AC | 2 ms
5,248 KB |
testcase_10 | AC | 1 ms
5,248 KB |
testcase_11 | AC | 2 ms
5,248 KB |
testcase_12 | AC | 1 ms
5,248 KB |
testcase_13 | AC | 2 ms
5,248 KB |
testcase_14 | AC | 1 ms
5,248 KB |
testcase_15 | AC | 1 ms
5,248 KB |
ソースコード
let () = let n, h, m, t = read_line () |> Str.split (Str.regexp_string " ") |> List.map (int_of_string) |> fun lst -> (List.nth lst 0, List.nth lst 1, List.nth lst 2, List.nth lst 3) in let exmin = (m + ((n - 1) * t)) in let exhr = h + exmin / 60 in exhr mod 24 |> string_of_int |> print_endline; exmin mod 60 |> string_of_int |> print_endline