結果
問題 |
No.1592 Tenkei 90
|
ユーザー |
![]() |
提出日時 | 2021-07-09 21:24:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 1,709 ms |
コンパイル使用メモリ | 194,588 KB |
最終ジャッジ日時 | 2025-01-22 20:38:01 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 11 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; string T = "kyoprotenkei90"; vector<int> C(26), D(26); for (const auto &s: S) C[s - '0']++; for (const auto &t: T) D[t - '0']++; for (int i = 0; i < 26; i++){ if (C[i] < D[i]){ puts("No"); return 0; } } puts("Yes"); }