結果

問題 No.687 E869120 and Constructing Array 1
ユーザー gemmarogemmaro
提出日時 2020-04-07 16:06:42
言語 Elixir
(1.16.2)
結果
AC  
実行時間 628 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 1,227 ms
コンパイル使用メモリ 54,848 KB
実行使用メモリ 49,816 KB
最終ジャッジ日時 2023-08-29 23:57:53
合計ジャッジ時間 8,285 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 623 ms
49,816 KB
testcase_01 AC 619 ms
49,748 KB
testcase_02 AC 628 ms
49,808 KB
testcase_03 AC 611 ms
49,252 KB
testcase_04 AC 622 ms
49,168 KB
testcase_05 AC 613 ms
49,756 KB
testcase_06 AC 617 ms
49,804 KB
testcase_07 AC 626 ms
49,072 KB
testcase_08 AC 615 ms
49,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.to_integer()
    |> (&"#{(&1 / 2) |> trunc} #{&1 - ((&1 / 2) |> trunc)}").()
    |> IO.puts()
  end
end
0