結果

問題 No.2240 WAC
ユーザー tailstails
提出日時 2023-03-10 21:47:15
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 3,283 ms
コンパイル使用メモリ 174,096 KB
実行使用メモリ 8,436 KB
最終ジャッジ日時 2023-10-18 07:33:04
合計ジャッジ時間 4,719 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,756 KB
testcase_01 AC 3 ms
7,756 KB
testcase_02 AC 2 ms
7,756 KB
testcase_03 AC 3 ms
7,756 KB
testcase_04 AC 2 ms
7,756 KB
testcase_05 AC 2 ms
7,756 KB
testcase_06 AC 3 ms
7,756 KB
testcase_07 AC 3 ms
7,756 KB
testcase_08 AC 3 ms
7,756 KB
testcase_09 AC 2 ms
7,756 KB
testcase_10 AC 5 ms
8,080 KB
testcase_11 WA -
testcase_12 AC 5 ms
8,436 KB
testcase_13 AC 3 ms
7,920 KB
testcase_14 AC 3 ms
7,816 KB
testcase_15 AC 4 ms
8,172 KB
testcase_16 WA -
testcase_17 AC 5 ms
8,072 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 4 ms
8,216 KB
testcase_21 WA -
testcase_22 AC 3 ms
8,004 KB
testcase_23 AC 3 ms
7,920 KB
testcase_24 AC 4 ms
8,164 KB
testcase_25 WA -
testcase_26 AC 3 ms
7,860 KB
testcase_27 AC 3 ms
7,832 KB
testcase_28 AC 3 ms
7,888 KB
testcase_29 AC 2 ms
7,800 KB
testcase_30 AC 3 ms
8,008 KB
testcase_31 AC 6 ms
8,336 KB
testcase_32 WA -
testcase_33 AC 4 ms
8,040 KB
testcase_34 AC 4 ms
8,120 KB
testcase_35 AC 3 ms
7,792 KB
testcase_36 WA -
testcase_37 AC 4 ms
8,276 KB
testcase_38 AC 3 ms
7,896 KB
testcase_39 AC 4 ms
8,360 KB
testcase_40 AC 4 ms
8,008 KB
testcase_41 AC 3 ms
8,132 KB
testcase_42 AC 4 ms
8,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

void dame(){
	wt("No");
	exit(0);
}

{
	ll@n,@m;
	string@s;
	ll c=0,w=0,a=0;
	for(char d:s){
		if(d=='A'){
			++a;
		}
		if(d=='C'){
			if(++c>a){
				dame();
			}
		}
		if(d=='W'){
			if(++w>n+m-a){
				dame();
			}
		}
	}
	wt("Yes");
}
0