結果

問題 No.2240 WAC
ユーザー dangodango
提出日時 2023-06-18 21:25:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 77,828 KB
最終ジャッジ日時 2023-09-08 15:54:30
合計ジャッジ時間 6,492 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,632 KB
testcase_01 AC 69 ms
71,292 KB
testcase_02 AC 73 ms
71,344 KB
testcase_03 AC 70 ms
71,416 KB
testcase_04 AC 70 ms
71,288 KB
testcase_05 AC 68 ms
71,152 KB
testcase_06 AC 69 ms
71,400 KB
testcase_07 AC 70 ms
71,196 KB
testcase_08 AC 69 ms
71,376 KB
testcase_09 AC 69 ms
71,296 KB
testcase_10 AC 85 ms
77,564 KB
testcase_11 AC 84 ms
77,828 KB
testcase_12 AC 85 ms
77,692 KB
testcase_13 AC 79 ms
76,584 KB
testcase_14 AC 77 ms
76,224 KB
testcase_15 AC 84 ms
77,124 KB
testcase_16 AC 85 ms
77,304 KB
testcase_17 AC 79 ms
76,536 KB
testcase_18 AC 76 ms
76,296 KB
testcase_19 AC 78 ms
76,080 KB
testcase_20 AC 84 ms
77,140 KB
testcase_21 AC 80 ms
76,820 KB
testcase_22 AC 82 ms
76,440 KB
testcase_23 AC 81 ms
76,464 KB
testcase_24 AC 83 ms
77,128 KB
testcase_25 AC 81 ms
76,520 KB
testcase_26 AC 78 ms
76,320 KB
testcase_27 AC 77 ms
76,092 KB
testcase_28 AC 80 ms
76,224 KB
testcase_29 AC 77 ms
76,220 KB
testcase_30 AC 80 ms
76,540 KB
testcase_31 AC 89 ms
77,456 KB
testcase_32 AC 78 ms
76,304 KB
testcase_33 AC 82 ms
76,672 KB
testcase_34 AC 83 ms
76,740 KB
testcase_35 AC 77 ms
76,072 KB
testcase_36 AC 86 ms
77,168 KB
testcase_37 AC 88 ms
77,376 KB
testcase_38 AC 80 ms
76,156 KB
testcase_39 AC 88 ms
77,444 KB
testcase_40 AC 80 ms
76,468 KB
testcase_41 AC 80 ms
76,632 KB
testcase_42 AC 82 ms
76,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
S = input()
A = C = W = B = 0
for i in range((N + M) * 2):
	if S[i] < "C": A += 1
	elif S[i] > "C":
		B += M + W < A
		W += 1
	else:
		C += 1
		B += A < C
print("No"if B else"Yes")
0