結果
| 問題 | No.1592 Tenkei 90 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-07-09 21:36:15 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 1,000 ms | 
| コード長 | 463 bytes | 
| コンパイル時間 | 2,072 ms | 
| コンパイル使用メモリ | 201,244 KB | 
| 最終ジャッジ日時 | 2025-01-22 21:06:10 | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout << fixed << setprecision(15);
    string word = "kyoprotenkei90";
    unordered_map<char, ll> m1;
    for (auto && c : word) {
        m1[c]++;
    }
    string S;
    cin >> S;
    unordered_map<char, ll> m2;
    for (auto && c : S) {
        m2[c]++;
    }
    cout << ((m1 == m2) ? "Yes" : "No") << "\n";
}
            
            
            
        