結果

問題 No.46 はじめのn歩
ユーザー milanis48663220milanis48663220
提出日時 2019-10-27 14:08:54
言語 Elixir
(1.16.2)
結果
AC  
実行時間 591 ms / 5,000 ms
コード長 253 bytes
コンパイル時間 1,108 ms
コンパイル使用メモリ 55,484 KB
実行使用メモリ 50,076 KB
最終ジャッジ日時 2023-08-29 23:45:33
合計ジャッジ時間 8,272 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 585 ms
49,948 KB
testcase_01 AC 587 ms
49,892 KB
testcase_02 AC 591 ms
49,800 KB
testcase_03 AC 584 ms
49,644 KB
testcase_04 AC 582 ms
49,392 KB
testcase_05 AC 577 ms
49,492 KB
testcase_06 AC 585 ms
49,940 KB
testcase_07 AC 589 ms
50,076 KB
testcase_08 AC 578 ms
49,512 KB
testcase_09 AC 576 ms
49,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
	def main do
		[a, b] = IO.gets("") |> String.trim()  |> String.split(" ") |> Enum.map(fn s -> String.to_integer(s) end)
    case rem(b, a) > 0 do
      true -> IO.inspect(div(b, a)+1)
      _ -> IO.inspect(div(b, a))
    end
	end
end
0