結果

問題 No.815 Are you a traveller ?
ユーザー gemmarogemmaro
提出日時 2020-04-01 08:15:37
言語 Elixir
(1.16.2)
結果
AC  
実行時間 646 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 1,017 ms
コンパイル使用メモリ 55,208 KB
実行使用メモリ 50,328 KB
最終ジャッジ日時 2023-08-29 23:54:49
合計ジャッジ時間 6,611 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 620 ms
49,608 KB
testcase_01 AC 616 ms
50,004 KB
testcase_02 AC 619 ms
49,384 KB
testcase_03 AC 634 ms
49,496 KB
testcase_04 AC 622 ms
49,328 KB
testcase_05 AC 625 ms
50,328 KB
testcase_06 AC 646 ms
49,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.to_integer()
    |> (fn n ->
          (n / 2)
          |> Float.ceil()
        end).()
    |> trunc
    |> IO.puts()
  end
end
0