結果

問題 No.2308 [Cherry 5th Tune B] もしかして、真?
ユーザー tailstails
提出日時 2023-05-19 22:50:30
言語 cLay
(20240104-1)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 5,744 ms
コンパイル使用メモリ 174,508 KB
実行使用メモリ 9,088 KB
最終ジャッジ日時 2024-05-10 06:17:23
合計ジャッジ時間 14,677 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 155 ms
5,760 KB
testcase_02 AC 189 ms
6,784 KB
testcase_03 AC 171 ms
6,784 KB
testcase_04 AC 173 ms
6,912 KB
testcase_05 AC 170 ms
7,040 KB
testcase_06 AC 187 ms
8,064 KB
testcase_07 AC 189 ms
7,680 KB
testcase_08 AC 198 ms
8,320 KB
testcase_09 AC 201 ms
8,320 KB
testcase_10 AC 183 ms
6,784 KB
testcase_11 AC 193 ms
6,784 KB
testcase_12 AC 193 ms
6,656 KB
testcase_13 AC 194 ms
6,656 KB
testcase_14 AC 194 ms
6,656 KB
testcase_15 AC 194 ms
6,656 KB
testcase_16 AC 190 ms
6,656 KB
testcase_17 AC 192 ms
6,528 KB
testcase_18 AC 192 ms
6,656 KB
testcase_19 AC 193 ms
6,784 KB
testcase_20 AC 193 ms
6,656 KB
testcase_21 AC 222 ms
9,088 KB
testcase_22 AC 218 ms
9,088 KB
testcase_23 AC 219 ms
9,088 KB
testcase_24 AC 218 ms
9,088 KB
testcase_25 AC 219 ms
9,088 KB
testcase_26 AC 217 ms
9,088 KB
testcase_27 AC 218 ms
9,088 KB
testcase_28 AC 220 ms
9,088 KB
testcase_29 AC 221 ms
9,088 KB
testcase_30 AC 218 ms
9,088 KB
testcase_31 AC 94 ms
9,088 KB
testcase_32 AC 95 ms
9,088 KB
testcase_33 AC 95 ms
9,088 KB
testcase_34 AC 109 ms
9,088 KB
testcase_35 AC 109 ms
9,088 KB
testcase_36 AC 108 ms
9,088 KB
testcase_37 AC 4 ms
5,376 KB
testcase_38 AC 191 ms
6,656 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);
	f.add((0..n-1),1);
	rep(i,n-1){
		ll@s--;
		ll a=f.kth(s);
		ll b=f.kth(s+1);
		f.add(b,-1);
		y[b]==@['a','o','x','i']&&(x[a]=x[a]@[&,|,^,<=]x[b]);
	}
	wt(x[0]?"True":"False");
}
0