結果

問題 No.494 yukicoder
コンテスト
ユーザー gemmaro
提出日時 2020-04-08 11:28:31
言語 Elixir
(1.20.4)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
AC  
実行時間 312 ms / 2,000 ms
+ 801µs
コード長 338 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 493 ms
コンパイル使用メモリ 78,228 KB
実行使用メモリ 67,232 KB
最終ジャッジ日時 2026-10-09 20:02:06
合計ジャッジ時間 4,830 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge5_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