結果

問題 No.2714 Amaou
ユーザー futamegawa
提出日時 2024-04-05 21:37:48
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 588 bytes
コンパイル時間 2,971 ms
コンパイル使用メモリ 255,988 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 01:51:51
合計ジャッジ時間 3,832 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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

using ll = long long;
using llu = long long unsigned;

// メイン関数
int main() {
    int n;
    cin >> n;

    int ret = 0;
    for (int i=0; i<n; ++i) {
        map<string, int> data;
        for (int j=0; j<4; ++j) {
            string s;
            cin >> s;
            data[s]++;
        }
        if (data["akai"] == 0) { continue; }
        if (data["marui"] == 0) { continue; }
        if (data["okii"] == 0) { continue; }
        if (data["umai"] == 0) { continue; }
        ret++;
    }
    cout << ret << endl; return 0;
}
0