結果

問題 No.2714 Amaou
ユーザー june19312june19312
提出日時 2024-04-05 21:22:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 55,748 KB
最終ジャッジ日時 2024-10-01 01:32:44
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

from copy import *
N = int(input())

tmp = set()
tmp.add("akai")
tmp.add("marui")
tmp.add("okii")
tmp.add("umai")

cnt = 0
for i in range(N):
    tmp2 = copy(tmp)
    tmp3 = list(map(str,input().split()))
    for j in tmp3:
        if j in tmp2:
            tmp2.discard(j)
    if len(tmp2) == 0:
        cnt += 1

print(cnt)
0