結果

問題 No.233 めぐるはめぐる (3)
ユーザー tailstails
提出日時 2021-03-23 15:59:29
言語 cLay
(20240104-1)
結果
AC  
実行時間 653 ms / 1,000 ms
コード長 212 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 169,380 KB
実行使用メモリ 40,132 KB
最終ジャッジ日時 2023-09-19 02:18:13
合計ジャッジ時間 8,686 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
14,180 KB
testcase_01 AC 61 ms
10,496 KB
testcase_02 AC 25 ms
7,060 KB
testcase_03 AC 76 ms
11,348 KB
testcase_04 AC 638 ms
39,948 KB
testcase_05 AC 443 ms
30,048 KB
testcase_06 AC 404 ms
28,256 KB
testcase_07 AC 645 ms
39,988 KB
testcase_08 AC 653 ms
40,132 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 65 ms
10,880 KB
testcase_13 AC 126 ms
14,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

map<string,ll>m;
char b[16];

void f(ll u,ll v,ll w){
	if(!u&!m[b])wt(b),exit(0);
	for(;v<12;v+=2)if(u&1<<v)f(u^1<<v,~v&1,w+!!(b[w]="inabameguru"[v]));
}

{
	ll@n;
	rep(n)rd(b),m[b]=1;
	f(4095,1,0);
	wt("NO");
}
0