結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー |
![]() |
提出日時 | 2021-04-26 18:40:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 513 bytes |
コンパイル時間 | 2,064 ms |
コンパイル使用メモリ | 199,004 KB |
最終ジャッジ日時 | 2025-01-21 01:11:12 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; set<string> used; for (int i = 0; i < N; i++) { string s; cin >> s; used.insert(s); } string sabbat_of_the_witch = "inabameguru"; do { if (used.count(sabbat_of_the_witch) == 0) { cout << sabbat_of_the_witch << endl; return 0; } } while (next_permutation(sabbat_of_the_witch.begin(), sabbat_of_the_witch.end())); cout << "NO" << endl; }