結果
| 問題 |
No.1367 文字列門松
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-29 21:32:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 599 bytes |
| コンパイル時間 | 801 ms |
| コンパイル使用メモリ | 93,032 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 07:40:18 |
| 合計ジャッジ時間 | 1,584 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
char c[10] = { 'k','a','d','o','m','a','t','s','u' };
int main() {
string s;
cin >> s;
for (int i = 0; i < (1 << 9); i++) {
string s1 = "";
for (int j = 0; j < 9; j++) {
if (i & (1 << j)) {
s1 += c[j];
}
}
if(s1 == s) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}