結果

問題 No.2714 Amaou
ユーザー YhuanDebesteYhuanDebeste
提出日時 2024-04-18 17:20:15
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 1,219 bytes
コンパイル時間 1,331 ms
コンパイル使用メモリ 116,748 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-18 17:20:20
合計ジャッジ時間 3,458 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 RE -
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 3 ms
5,376 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 3 ms
5,376 KB
testcase_13 AC 3 ms
5,376 KB
testcase_14 RE -
testcase_15 AC 3 ms
5,376 KB
testcase_16 RE -
testcase_17 AC 1 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 2 ms
5,376 KB
testcase_22 RE -
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 1 ms
5,376 KB
testcase_25 AC 1 ms
5,376 KB
testcase_26 RE -
testcase_27 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <deque>
#include <unordered_map>
#include <string>
#include <sstream>
#include <cmath>
#include <cctype>

using namespace std;
int t, a, b, i;
int x = 0;
string words[4] = {};
string s;
int main(){
    cin >> t;
    while(t--){
        b = 0;
        fill_n(words, 4, 0);
        for(i=0; i < 4; i++){
            cin >> s;
            for(a=0; a<sizeof(s); a++){
                s[a] = tolower(s[a]);
            }
            words[i] = s;
        }
        for(i=0; i < 4; i++){
                if (words[i] == "akai"){
                    b++;
                    break;
                }
        }
        for(i=0; i < 4; i++){
            if (words[i] == "marui"){
                    b++;
                    break;
                }
        }
        for(i=0; i < 4; i++){
            if (words[i] == "okii"){
                    b++;
                    break;
                }
        }
        for(i=0; i < 4; i++){
            if (words[i] == "umai"){
                    b++;
                    break;
                }
        }
        if (b == 4){
            x++;
        }
    }
    cout << x;
}
0