結果
| 問題 |
No.1592 Tenkei 90
|
| ユーザー |
|
| 提出日時 | 2023-06-20 21:29:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 383 bytes |
| コンパイル時間 | 536 ms |
| コンパイル使用メモリ | 67,932 KB |
| 最終ジャッジ日時 | 2025-02-14 23:35:54 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
int main(void){
string base = "kyoprotenkei90", s;
cin >> s;
int pos = -1;
for (int i = 0; i < 14; i++) {
pos = base.find(s.substr(i, 1));
if (pos != string::npos) base.erase(pos, 1);
}
base.size() == 0 ? YES : NO;
}