結果

問題 No.2308 [Cherry 5th Tune B] もしかして、真?
ユーザー tailstails
提出日時 2023-05-19 22:50:32
言語 cLay
(20240104-1)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 2,537 ms
コンパイル使用メモリ 173,748 KB
実行使用メモリ 9,264 KB
最終ジャッジ日時 2023-08-23 00:53:53
合計ジャッジ時間 11,098 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 144 ms
5,956 KB
testcase_02 AC 175 ms
6,732 KB
testcase_03 AC 159 ms
6,804 KB
testcase_04 AC 163 ms
6,968 KB
testcase_05 AC 159 ms
7,076 KB
testcase_06 AC 175 ms
8,184 KB
testcase_07 AC 179 ms
7,752 KB
testcase_08 AC 187 ms
8,308 KB
testcase_09 AC 185 ms
8,476 KB
testcase_10 AC 167 ms
6,872 KB
testcase_11 AC 181 ms
6,792 KB
testcase_12 AC 181 ms
6,792 KB
testcase_13 AC 181 ms
6,852 KB
testcase_14 AC 181 ms
6,732 KB
testcase_15 AC 182 ms
6,788 KB
testcase_16 AC 182 ms
6,724 KB
testcase_17 AC 180 ms
6,800 KB
testcase_18 AC 179 ms
6,772 KB
testcase_19 AC 180 ms
6,980 KB
testcase_20 AC 177 ms
6,776 KB
testcase_21 AC 203 ms
9,072 KB
testcase_22 AC 206 ms
9,080 KB
testcase_23 AC 205 ms
9,116 KB
testcase_24 AC 206 ms
9,264 KB
testcase_25 AC 204 ms
9,128 KB
testcase_26 AC 206 ms
9,260 KB
testcase_27 AC 205 ms
9,068 KB
testcase_28 AC 205 ms
9,072 KB
testcase_29 AC 202 ms
9,252 KB
testcase_30 AC 203 ms
9,120 KB
testcase_31 AC 82 ms
9,076 KB
testcase_32 AC 83 ms
9,116 KB
testcase_33 AC 82 ms
9,072 KB
testcase_34 AC 98 ms
9,080 KB
testcase_35 AC 97 ms
9,256 KB
testcase_36 AC 98 ms
9,116 KB
testcase_37 AC 4 ms
4,376 KB
testcase_38 AC 178 ms
6,724 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