結果

問題 No.1592 Tenkei 90
ユーザー shiroha_F14shiroha_F14
提出日時 2021-07-09 21:24:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 502 bytes
コンパイル時間 1,670 ms
コンパイル使用メモリ 174,888 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-01 15:01:25
合計ジャッジ時間 2,408 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define fs(n) fixed << setprecision(n);
#define mp(a, b) make_pair(a, b);
using ll = long long;
using ld = long double;

int main(){
  string s; cin >> s;
  string tomake = "kyoprotenkei90";
  map<char, int> ap, bp;
  for(int i = 0; i < 14; i++){
    ap[tomake[i]]++;
  }
  for(int i = 0; i < 14; i++){
    bp[s[i]]++;
  }
  for(auto x : ap){
    if(bp[x.first] < x.second){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
}
0