結果

問題 No.717 ファッションへのこだわり
ユーザー daleksprinterdaleksprinter
提出日時 2018-07-27 22:34:13
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 6,088 KB
最終ジャッジ日時 2023-09-18 11:19:44
合計ジャッジ時間 899 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,000 KB
testcase_01 AC 12 ms
5,944 KB
testcase_02 AC 12 ms
5,844 KB
testcase_03 AC 12 ms
5,864 KB
testcase_04 AC 12 ms
5,864 KB
testcase_05 AC 12 ms
6,048 KB
testcase_06 AC 12 ms
5,952 KB
testcase_07 AC 12 ms
6,088 KB
testcase_08 AC 12 ms
6,088 KB
testcase_09 AC 12 ms
6,032 KB
testcase_10 AC 12 ms
6,020 KB
testcase_11 AC 12 ms
6,028 KB
testcase_12 AC 12 ms
6,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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"))
0