結果

問題 No.2714 Amaou
ユーザー kou_kkk
提出日時 2024-04-10 13:19:04
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 3,501 ms
コンパイル使用メモリ 65,812 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-02 15:22:32
合計ジャッジ時間 4,584 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils


proc isAmaou(xs: seq[string]): bool =
  const
    a = @[
      "akai",
      "marui",
      "okii",
      "umai",
    ]
  a.allIt(it in xs)


let
  n = parseInt readLine stdin
  xs = n.newSeqWith stdin.readLine.split.toSeq

echo xs.countIt it.isAmaou
0