結果

問題 No.296 n度寝
ユーザー gemmarogemmaro
提出日時 2020-04-16 20:36:16
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 3,322 ms
コンパイル使用メモリ 53,512 KB
実行使用メモリ 50,168 KB
最終ジャッジ日時 2023-08-30 00:17:39
合計ジャッジ時間 13,764 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 580 ms
49,392 KB
testcase_04 AC 581 ms
49,684 KB
testcase_05 AC 580 ms
49,740 KB
testcase_06 AC 583 ms
49,276 KB
testcase_07 AC 576 ms
49,116 KB
testcase_08 WA -
testcase_09 AC 571 ms
49,344 KB
testcase_10 AC 584 ms
49,264 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 575 ms
49,288 KB
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> String.split()
    |> Enum.map(&String.to_integer/1)
    |> solve
    |> IO.puts()
  end

  defp solve([n, h, m, t]) do
    [(h + (m |> div(60))) |> rem(24), (m + (n - 1) * t) |> rem(60)]
    |> Enum.join("\n")
  end
end
0