結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー getty104
提出日時 2018-09-11 15:57:25
言語 Elixir
(1.18.1)
結果
AC  
実行時間 578 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 1,051 ms
コンパイル使用メモリ 64,832 KB
実行使用メモリ 56,832 KB
最終ジャッジ日時 2024-12-31 02:23:46
合計ジャッジ時間 14,087 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [year, month, day] = IO.gets("") |> String.trim |> String.split("/") |> Enum.map(&String.to_integer/1)
    {:ok, date} = Date.new(year, month, day)
    next_day = Date.add(date, 2) |> Date.to_string
    IO.puts Regex.replace(~r/-/, next_day, "/")
  end
end

0