結果

問題 No.494 yukicoder
コンテスト
ユーザー gemmaro
提出日時 2020-04-08 11:28:31
言語 Elixir
(1.19.5)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 338 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 844 ms
コンパイル使用メモリ 72,072 KB
実行使用メモリ 63,296 KB
最終ジャッジ日時 2026-06-04 15:03:59
合計ジャッジ時間 5,003 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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