結果

問題 No.2240 WAC
ユーザー tails
提出日時 2023-03-10 21:47:15
言語 cLay
(20241019-1)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 3,381 ms
コンパイル使用メモリ 173,100 KB
実行使用メモリ 7,876 KB
最終ジャッジ日時 2024-09-18 04:03:28
合計ジャッジ時間 3,511 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35 WA * 8
権限があれば一括ダウンロードができます

ソースコード

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