結果
| 問題 | No.1592 Tenkei 90 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-20 21:29:23 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 495 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-01 10:31:01 |
| 合計ジャッジ時間 | 1,676 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}