結果
問題 | No.1592 Tenkei 90 |
ユーザー |
![]() |
提出日時 | 2021-07-09 21:23:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 494 bytes |
コンパイル時間 | 1,559 ms |
コンパイル使用メモリ | 171,400 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 14:54:43 |
合計ジャッジ時間 | 2,289 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define ll long long#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)#define Pr pair<ll,ll>#define Tp tuple<ll,ll,ll>using Graph = vector<vector<int>>;ll mod = 1000000007;int main() {string S; cin >> S;string ans = "No";multiset<char> s;rep(i,S.size()){s.insert(S[i]);}string T = "kyoprotenkei90";rep(i,T.size()){s.erase(T[i]);}if(s.empty()) ans = "Yes";cout << ans << endl;}