結果

問題 No.2308 [Cherry 5th Tune B] もしかして、真?
ユーザー tailstails
提出日時 2023-05-19 22:06:43
言語 cLay
(20240104-1)
結果
AC  
実行時間 237 ms / 2,000 ms
コード長 432 bytes
コンパイル時間 3,410 ms
コンパイル使用メモリ 172,380 KB
実行使用メモリ 9,268 KB
最終ジャッジ日時 2023-08-23 00:02:33
合計ジャッジ時間 12,713 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 164 ms
5,756 KB
testcase_02 AC 205 ms
6,828 KB
testcase_03 AC 187 ms
6,760 KB
testcase_04 AC 184 ms
6,968 KB
testcase_05 AC 182 ms
7,052 KB
testcase_06 AC 197 ms
7,968 KB
testcase_07 AC 202 ms
7,764 KB
testcase_08 AC 212 ms
8,288 KB
testcase_09 AC 209 ms
8,344 KB
testcase_10 AC 188 ms
6,800 KB
testcase_11 AC 208 ms
6,716 KB
testcase_12 AC 210 ms
6,708 KB
testcase_13 AC 209 ms
6,768 KB
testcase_14 AC 210 ms
6,768 KB
testcase_15 AC 209 ms
6,720 KB
testcase_16 AC 210 ms
6,836 KB
testcase_17 AC 209 ms
6,724 KB
testcase_18 AC 209 ms
6,760 KB
testcase_19 AC 208 ms
6,700 KB
testcase_20 AC 207 ms
6,708 KB
testcase_21 AC 232 ms
9,048 KB
testcase_22 AC 235 ms
9,048 KB
testcase_23 AC 237 ms
9,108 KB
testcase_24 AC 234 ms
9,192 KB
testcase_25 AC 234 ms
9,096 KB
testcase_26 AC 237 ms
9,076 KB
testcase_27 AC 235 ms
9,060 KB
testcase_28 AC 235 ms
9,084 KB
testcase_29 AC 235 ms
9,156 KB
testcase_30 AC 235 ms
9,268 KB
testcase_31 AC 91 ms
9,056 KB
testcase_32 AC 90 ms
9,112 KB
testcase_33 AC 90 ms
9,068 KB
testcase_34 AC 108 ms
9,100 KB
testcase_35 AC 106 ms
9,228 KB
testcase_36 AC 107 ms
9,128 KB
testcase_37 AC 4 ms
4,380 KB
testcase_38 AC 206 ms
6,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fenwick<ll>f;
f.malloc(2d5);
ll@t;
rep(t){
	ll@n,x[n],y[n];
	rep(i,n){
		string@s;
		x[i]=s[0]=='T';
	}
	rep(i,n-1){
		string@s;
		y[i+1]=s[0];
	}
	f.init(n);
	rep(i,n-1){
		ll@s--;
		ll a=bsearch_min[ll,a,0,n](a-f.get(a)>=s);
		ll b=bsearch_min[ll,b,0,n](b-f.get(b)>=s+1);
		f.add(b,1);
		if(y[b]=='a')x[a]&=x[b];
		if(y[b]=='o')x[a]|=x[b];
		if(y[b]=='x')x[a]^=x[b];
		if(y[b]=='i')x[a]=x[a]<=x[b];
	}
	wt(x[0]?"True":"False");
}
0