結果

問題 No.233 めぐるはめぐる (3)
ユーザー omuomu
提出日時 2015-06-26 23:16:36
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 1,162 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 83,392 KB
実行使用メモリ 17,864 KB
最終ジャッジ日時 2023-09-22 01:34:20
合計ジャッジ時間 5,936 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 149 ms
17,580 KB
testcase_08 AC 149 ms
17,604 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <functional>
#include <queue>
#include <set>

using namespace std;

#define For(i,a,b) for(int i = (a);i < (b);i++)
#define rep(i,n) For(i,0,n)

const int dx[8] = { 1, 0, -1, 0, 1, 1, -1, -1 }, dy[8] = { 0, -1, 0, 1, -1, 1, -1, 1 };
string dc[8] = { ">", "v", "<", "^", ">^", ">v", "<^", "<v" };

typedef pair<int, int> P;

int main(){

	int n;
	cin >> n;

	string s = "inabameguru";
	string bs = "iaaeuu";
	string cs = "nbmgr";
	sort(bs.begin(), bs.end());
	sort(cs.begin(), cs.end());

	set<pair<string,string>> se;

	rep(i, n){
		string t;
		cin >> t;
		string b;
		string c;
		rep(j, t.size()){
			if (j % 2){
				c += t[j];
			}
			else{
				b += t[j];
			}
		}
		se.insert(make_pair(b, c));
	}
	cout << "NO" << endl; return 0;
	do{
		do{
			if (!se.count(make_pair(bs, cs))){
				rep(j, 11){
					if (j % 2){
						cout << cs[j / 2];
					}
					else{
						cout << bs[j / 2];
					}
				}
				cout << endl;
				return 0;
			}

		} while (next_permutation(bs.begin(), bs.end()));

	} while (next_permutation(cs.begin(), cs.end()));


	cout << "NO" << endl;

	return 0;
}
0