結果
| 問題 |
No.1592 Tenkei 90
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-10 13:29:44 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 1,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 1,790 ms |
| コンパイル使用メモリ | 199,408 KB |
| 最終ジャッジ日時 | 2025-01-22 23:59:12 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string s, t;
cin >> s;
t = "kyoprotenkei90";
map<char, int> m, n;
for(auto a : s) m[a]++;
for(auto a : t) n[a]++;
bool ans = true;
for(auto [a, b] : m){
if(b != n[a]) ans = false;
}
if(ans) cout << "Yes" << endl;
else cout << "No" << endl;
}