結果
| 問題 |
No.1592 Tenkei 90
|
| コンテスト | |
| ユーザー |
totori_nyaa
|
| 提出日時 | 2021-07-09 21:21:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 753 bytes |
| コンパイル時間 | 1,582 ms |
| コンパイル使用メモリ | 166,548 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 14:51:11 |
| 合計ジャッジ時間 | 2,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) (x).begin(),(x).end()
template<typename T1,typename T2> bool chmin(T1 &a,T2 b){if(a<=b)return 0; a=b; return 1;}
template<typename T1,typename T2> bool chmax(T1 &a,T2 b){if(a>=b)return 0; a=b; return 1;}
int dx[4]={0,1,0,-1}, dy[4]={1,0,-1,0};
long double eps = 1e-9;
long double pi = acos(-1);
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(20);
string s;
cin>>s;
bool pos = true;
string ret = "kyoprotenkei90";
int cnt[1111]={};
for(int i=0;i<(int)ret.size();i++){
cnt[ret[i]]++;
}
for(int i=0;i<(int)s.size();i++)cnt[s[i]]--;
for(int i=0;i<1111;i++){
if(cnt[i]!=0){
cout << "No\n";
return 0;
}
}
cout << "Yes\n";
}
totori_nyaa