結果

問題 No.1367 文字列門松
ユーザー greenparakeetgreenparakeet
提出日時 2021-01-29 21:57:05
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,231 bytes
コンパイル時間 1,504 ms
コンパイル使用メモリ 165,116 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-09 15:20:36
合計ジャッジ時間 2,565 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    string s;
    cin >> s;
    if (s == "k" || s == "a" || s == "d" || s == "o" || s == "m" || s == "t" || s == "s" || s == "u") {
        cout << "Yes" << endl;
    }
    else if (s == "ka" || s == "ad" || s == "do" || s == "om" || s == "ma" || s == "at" || s == "ts" || s == "su" ) {
        cout << "Yes" << endl;
    }
    else if (s == "kad" || s == "ado" || s == "dom" || s == "oma" || s == "mat" || s == "ats" || s == "tsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kado" || s == "adom" || s == "doma" || s == "omat" || s == "mats" || s == "atsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kadom" || s == "adoma" || s == "domat" || s == "omats" || s == "matsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kadoma" || s == "adomat" || s == "domats" || s == "omatsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kadomat" || s == "adomats" || s == "domatsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kadomats" || s == "adomatsu") {
        cout << "Yes" << endl;
    }
    else if (s == "kadomatsu") {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}
0