結果

問題 No.46 はじめのn歩
ユーザー yukiccoyukicco
提出日時 2018-11-17 01:26:56
言語 Elixir
(1.16.2)
結果
AC  
実行時間 640 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 1,106 ms
コンパイル使用メモリ 55,184 KB
実行使用メモリ 50,076 KB
最終ジャッジ日時 2023-08-29 23:03:49
合計ジャッジ時間 8,718 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 618 ms
49,820 KB
testcase_01 AC 626 ms
49,136 KB
testcase_02 AC 609 ms
49,128 KB
testcase_03 AC 628 ms
49,296 KB
testcase_04 AC 628 ms
50,076 KB
testcase_05 AC 631 ms
49,196 KB
testcase_06 AC 619 ms
49,140 KB
testcase_07 AC 640 ms
49,184 KB
testcase_08 AC 626 ms
49,564 KB
testcase_09 AC 627 ms
49,672 KB
権限があれば一括ダウンロードができます

ソースコード

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