結果

問題 No.46 はじめのn歩
ユーザー yukicco
提出日時 2018-11-17 01:26:56
言語 Elixir
(1.18.1)
結果
AC  
実行時間 534 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 959 ms
コンパイル使用メモリ 63,220 KB
実行使用メモリ 55,180 KB
最終ジャッジ日時 2024-12-31 02:28:37
合計ジャッジ時間 7,149 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
    def main do

        inputs = IO.binread(:all) |> String.split

        [a, b] = inputs |> Enum.map(&(String.to_integer(&1)))

        IO.puts div(b, a) + if(rem(b, a) == 0, do: 0, else: 1)

    end
end
0