結果

問題 No.692 square1001 and Permutation 1
ユーザー gemmarogemmaro
提出日時 2020-04-08 11:39:21
言語 Elixir
(1.16.2)
結果
AC  
実行時間 646 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 1,164 ms
コンパイル使用メモリ 61,876 KB
実行使用メモリ 54,404 KB
最終ジャッジ日時 2024-06-09 23:12:09
合計ジャッジ時間 7,573 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 631 ms
54,060 KB
testcase_01 AC 627 ms
54,020 KB
testcase_02 AC 643 ms
54,404 KB
testcase_03 AC 639 ms
53,808 KB
testcase_04 AC 638 ms
54,056 KB
testcase_05 AC 637 ms
53,872 KB
testcase_06 AC 646 ms
54,072 KB
testcase_07 AC 636 ms
53,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.to_integer()
    |> (fn n ->
          cond do
            n == 1 -> "square1001"
            true -> "Petr"
          end
        end).()
    |> IO.puts()
  end
end
0