結果

問題 No.292 芸名
ユーザー gemmarogemmaro
提出日時 2020-04-13 13:09:25
言語 Elixir
(1.16.2)
結果
AC  
実行時間 589 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 1,121 ms
コンパイル使用メモリ 56,528 KB
実行使用メモリ 50,388 KB
最終ジャッジ日時 2023-08-30 00:09:11
合計ジャッジ時間 10,196 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 585 ms
49,736 KB
testcase_01 AC 585 ms
49,344 KB
testcase_02 AC 586 ms
49,920 KB
testcase_03 AC 579 ms
50,388 KB
testcase_04 AC 584 ms
49,232 KB
testcase_05 AC 585 ms
49,384 KB
testcase_06 AC 587 ms
49,404 KB
testcase_07 AC 587 ms
49,232 KB
testcase_08 AC 589 ms
49,280 KB
testcase_09 AC 579 ms
49,112 KB
testcase_10 AC 582 ms
49,240 KB
testcase_11 AC 584 ms
49,108 KB
testcase_12 AC 586 ms
49,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> String.split()
    |> solve
    |> IO.puts()
  end

  defp solve([s, t, u]) do
    s
    |> String.to_charlist()
    |> List.replace_at(t |> String.to_integer(), '_')
    |> List.replace_at(u |> String.to_integer(), '_')
    |> Enum.filter(&(&1 != '_'))
  end
end
0