結果
| 問題 |
No.717 ファッションへのこだわり
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-28 08:52:50 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 2,000 ms |
| コード長 | 171 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-07-05 18:15:44 |
| 合計ジャッジ時間 | 659 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#yuki717
n,m=map(int,raw_input().split())
s=raw_input()
t=raw_input()
sa=s.count('A')
sb=s.count('B')
ta=t.count('A')
tb=t.count('B')
res=min(sa,ta)+min(sb,tb)
print res