結果

問題 No.46 はじめのn歩
ユーザー yoshirawyoshiraw
提出日時 2018-12-28 15:27:46
言語 Elixir
(1.16.2)
結果
AC  
実行時間 640 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 1,103 ms
コンパイル使用メモリ 54,712 KB
実行使用メモリ 49,868 KB
最終ジャッジ日時 2023-08-29 23:10:43
合計ジャッジ時間 8,650 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 632 ms
49,396 KB
testcase_01 AC 626 ms
49,160 KB
testcase_02 AC 636 ms
49,588 KB
testcase_03 AC 636 ms
49,868 KB
testcase_04 AC 626 ms
49,156 KB
testcase_05 AC 623 ms
49,084 KB
testcase_06 AC 633 ms
49,800 KB
testcase_07 AC 640 ms
49,312 KB
testcase_08 AC 640 ms
49,716 KB
testcase_09 AC 638 ms
49,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b] = IO.gets("")
        |> String.trim
        |> String.split
        |> Enum.map(&String.to_integer/1)
    IO.puts( div((a+b-1),a))
  end
end
0