結果

問題 No.692 square1001 and Permutation 1
ユーザー gemmarogemmaro
提出日時 2020-04-08 11:39:21
言語 Elixir
(1.16.2)
結果
AC  
実行時間 609 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 1,066 ms
コンパイル使用メモリ 55,104 KB
実行使用メモリ 49,776 KB
最終ジャッジ日時 2023-08-30 00:01:11
合計ジャッジ時間 7,156 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
49,428 KB
testcase_01 AC 607 ms
49,776 KB
testcase_02 AC 604 ms
49,300 KB
testcase_03 AC 600 ms
49,704 KB
testcase_04 AC 607 ms
49,764 KB
testcase_05 AC 609 ms
49,164 KB
testcase_06 AC 602 ms
49,096 KB
testcase_07 AC 609 ms
49,240 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