結果

問題 No.418 ミンミンゼミ
コンテスト
ユーザー norioc
提出日時 2024-11-30 05:46:06
言語 Elixir
(1.19.5)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
AC  
実行時間 316 ms / 1,000 ms
コード長 334 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,792 ms
コンパイル使用メモリ 72,468 KB
実行使用メモリ 63,564 KB
最終ジャッジ日時 2026-05-23 22:13:58
合計ジャッジ時間 13,523 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

defmodule Main do
  def input, do: IO.read(:line) |> String.trim
  def ii, do: input() |> String.to_integer
  def li, do: input() |> String.split |> Enum.map(&String.to_integer/1)
  def yn(b), do: IO.puts (if b, do: "Yes", else: "No")

  def main do
    s = input()

    ss = Regex.scan(~r/mi-*n/, s)
    IO.puts length(ss)
  end
end
0