結果

問題 No.2714 Amaou
ユーザー mint
提出日時 2024-04-05 22:45:48
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 2,158 ms
コンパイル使用メモリ 194,232 KB
最終ジャッジ日時 2025-02-20 21:51:59
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, z = 0; cin >> n;
    while(n--){
        bool b = false, c = false, d = false, e = false;
        for(int i = 0; i < 4; i++){
            string a; cin >> a;
            if(a == "akai") b = true;
            else if(a == "marui") c = true;
            else if(a == "okii") d = true;
            else if(a == "umai") e = true;
        }
        if(b && c && d && e) z++;
    }
    cout << z << '\n';
    return 0;
}
0