結果

問題 No.717 ファッションへのこだわり
ユーザー mlihua09
提出日時 2020-09-01 17:10:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-11-19 09:28:59
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #


N, M = map(int, input().split())

S = input()

T = input()

print(min(S.count('A'), T.count('A')) + min(S.count('B'), T.count('B')))
0