結果

問題 No.2714 Amaou
ユーザー t98slider
提出日時 2024-04-06 20:54:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 2,421 ms
コンパイル使用メモリ 205,084 KB
最終ジャッジ日時 2025-02-20 22:38:58
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	int n, ans = 0;
	cin >> n;
	vector<string> S = {"akai", "marui", "okii", "umai"};
	while(n--){
		vector<string> a(4);
		for(auto &&s : a) cin >> s;
		sort(a.begin(), a.end());
		ans += a == S;
	}
	cout << ans << '\n';
}
0