結果
| 問題 |
No.1592 Tenkei 90
|
| コンテスト | |
| ユーザー |
yunix91201367
|
| 提出日時 | 2021-07-09 21:23:30 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 992 bytes |
| コンパイル時間 | 1,784 ms |
| コンパイル使用メモリ | 176,716 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 14:55:51 |
| 合計ジャッジ時間 | 2,413 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
// #include <atcoder/maxflow>
#define int long long
using namespace std;
// using namespace atcoder;
using vec_int = vector<int>;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
void cout_line(vector<int> &a){
for(int i=0;i<a.size();i++){
if(i<a.size()-1){
cout<<a.at(i)<<" ";
}else{
cout<<a.at(i)<<endl;
}
}
}
signed main()
{
string S; cin>>S;
string S2 = "kyoprotenkei90";
if(S.size()!=S2.size()){
cout<<"No"<<endl;
return 0;
}
map<char, int> map1;
map<char, int> map2;
for(int i=0;i<S.size();i++){
map1[S.at(i)]++;
map2[S2.at(i)]++;
}
for(auto temp: map1){
if(!map2.count(temp.first)){
cout<<"No"<<endl;
return 0;
}
if(map2[temp.first]!=temp.second){
cout<<"No"<<endl;
return 0;
}
}
cout<<"Yes"<<endl;
return 0;
}
yunix91201367