結果

問題 No.233 めぐるはめぐる (3)
ユーザー tailstails
提出日時 2019-01-29 16:31:46
言語 cLay
(20231016-1)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 216 bytes
コンパイル時間 2,172 ms
コンパイル使用メモリ 169,092 KB
実行使用メモリ 22,612 KB
最終ジャッジ日時 2023-09-19 00:21:01
合計ジャッジ時間 8,453 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘long long int f(long long int, long long int, long long int)’:
main.cpp:123:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

ソースコード

diff #

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

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

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