結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2018-11-17 22:57:47 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 575 ms / 1,000 ms |
コード長 | 484 bytes |
コンパイル時間 | 938 ms |
コンパイル使用メモリ | 62,836 KB |
実行使用メモリ | 55,180 KB |
最終ジャッジ日時 | 2024-12-31 02:32:05 |
合計ジャッジ時間 | 11,288 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
defmoduleMain dodef toMin(time) do{h, m} = time(60 * h) + menddef toTime(min) dod = div(min, 1440)h = div(min, 60) - (24 * d)m = rem(min, 60){h, m}enddef main doinputs = IO.binread(:all) |> String.split[n, h, m, t] = Enum.map(inputs, &(String.to_integer(&1))){hour, minute} = toMin({h, m}) + (t * (n - 1)) |> toTimeIO.puts hourIO.puts minuteendend