結果

問題 No.2714 Amaou
ユーザー れいん
提出日時 2024-12-08 21:29:32
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 535 bytes
コンパイル時間 3,781 ms
コンパイル使用メモリ 258,992 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-08 21:29:37
合計ジャッジ時間 4,680 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main()
{
    int N;
    cin >> N;
    vector<string> amaou = {"akai", "marui", "okii", "umai"};
    sort(amaou.begin(), amaou.end());
    int ans = 0;
    for (int i = 0; i < N; i++)
    {
        vector<string> check;
        for (int j = 0; j < 4; j++)
        {
            string S;
            cin >> S;
            check.push_back(S);
        }
        sort(check.begin(), check.end());
        if (amaou == check)
        {
            ans++;
        }
    }
    cout << ans;
}
0