結果

問題 No.1367 文字列門松
ユーザー pop_o
提出日時 2024-09-23 16:28:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 2,061 ms
コンパイル使用メモリ 195,068 KB
最終ジャッジ日時 2025-02-24 11:41:44
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

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



int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    string s;
    cin >> s;
    vector<string> ss = {
        "kadomatsu",
        "adomatsu",
        "kdomatsu",
        "kaomatsu",
        "kadmatsu",
        "kadoatsu",
        "kadomtsu",
        "kadomasu",
        "kadomatu",
        "kadomats",
    };
    for (auto x:ss) {
        if (x == s) {
            cout << "Yes\n";
            return 0;
        }
    }
    cout << "No\n";
}
0