結果
| 問題 | No.717 ファッションへのこだわり | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-07-27 22:34:13 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 2,000 ms | 
| コード長 | 151 bytes | 
| コンパイル時間 | 74 ms | 
| コンパイル使用メモリ | 6,912 KB | 
| 実行使用メモリ | 6,528 KB | 
| 最終ジャッジ日時 | 2024-07-05 02:26:55 | 
| 合計ジャッジ時間 | 835 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
n,m = map(int,raw_input().split())
s = list(raw_input())
t = list(raw_input())
print min(s.count("A"),t.count("A")) + min(s.count("B"), t.count("B"))
            
            
            
        