結果

問題 No.494 yukicoder
ユーザー gemmarogemmaro
提出日時 2020-04-08 11:28:31
言語 Elixir
(1.16.2)
結果
AC  
実行時間 625 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 1,033 ms
コンパイル使用メモリ 55,360 KB
実行使用メモリ 50,132 KB
最終ジャッジ日時 2023-08-30 00:00:24
合計ジャッジ時間 7,900 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 622 ms
49,232 KB
testcase_01 AC 619 ms
49,176 KB
testcase_02 AC 623 ms
49,188 KB
testcase_03 AC 612 ms
49,948 KB
testcase_04 AC 615 ms
49,220 KB
testcase_05 AC 611 ms
50,132 KB
testcase_06 AC 610 ms
49,808 KB
testcase_07 AC 608 ms
49,832 KB
testcase_08 AC 625 ms
49,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.to_charlist()
    |> Enum.find_index(fn x -> to_string([x]) == "?" end)
    |> (fn i ->
          "yukicoder"
          |> String.to_charlist()
          |> Enum.at(i)
          |> (fn c -> to_string([c]) end).()
        end).()
    |> IO.puts()
  end
end
0