結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-11-30 05:46:06 |
| 言語 | Elixir (1.18.1) |
| 結果 |
AC
|
| 実行時間 | 688 ms / 1,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 4,529 ms |
| コンパイル使用メモリ | 61,060 KB |
| 実行使用メモリ | 55,264 KB |
| 最終ジャッジ日時 | 2024-11-30 05:46:39 |
| 合計ジャッジ時間 | 23,158 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
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
norioc