結果

問題 No.2714 Amaou
ユーザー todosec
提出日時 2024-04-25 23:54:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 339 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-08 12:05:18
合計ジャッジ時間 2,565 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

answer = 0
lst = ['akai', 'marui', 'okii', 'umai']
n = input()
for i in range(0,n):
	iis = input().split(' ')
	hits = [ 0, 0, 0, 0 ]
	for s in iis:
		if s in lst:
			ix = lst.index(s)
			hits[ix] = hits[ix] + 1
	amaou = True
	for j in range(0,4):
		if hits[j] != 1:
			amaou = False
			break
	if amaou:
		answer = answer + 1
print(answer)
0