結果

問題 No.1592 Tenkei 90
ユーザー Yourein
提出日時 2021-07-10 15:03:51
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 436 bytes
コンパイル時間 1,377 ms
コンパイル使用メモリ 78,368 KB
最終ジャッジ日時 2025-01-23 00:13:13
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <map>

using namespace std;

int main(){
    map<char, int> kyopro;
    string e = "kyoprotenkei90";
    for (auto x : e){
        kyopro[x]++;
    }

    string s;
    cin >> s;

    for (auto x : s){
        kyopro[x]--;
    }

    bool yes = true;
    for (auto x : s){
        if (kyopro[x] != 0) yes = false;
    }

    if (yes) cout << "Yes" << endl;
    else cout << "No" << endl;
}
0