結果
問題 | No.2714 Amaou |
ユーザー | NP |
提出日時 | 2024-04-05 21:26:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-10-01 01:37:54 |
合計ジャッジ時間 | 2,252 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
def count_amaou_strawberries(N, strawberries): amaou_count = 0 amaou_characteristics = {"akai", "marui", "okii", "umai"} for strawberry in strawberries: if set(strawberry) == amaou_characteristics: amaou_count += 1 return amaou_count N = int(input()) strawberries = [] for _ in range(N): strawberries.append(input().split()) amaou_count = count_amaou_strawberries(N, strawberries) print(amaou_count)