結果

問題 No.717 ファッションへのこだわり
ユーザー roarisroaris
提出日時 2020-12-04 17:08:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 1,081 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 77,140 KB
最終ジャッジ日時 2023-10-13 06:33:42
合計ジャッジ時間 3,318 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
71,468 KB
testcase_01 AC 80 ms
71,496 KB
testcase_02 AC 80 ms
71,504 KB
testcase_03 AC 84 ms
71,524 KB
testcase_04 AC 84 ms
71,668 KB
testcase_05 AC 74 ms
71,516 KB
testcase_06 AC 93 ms
76,584 KB
testcase_07 AC 78 ms
76,656 KB
testcase_08 AC 80 ms
76,696 KB
testcase_09 AC 85 ms
76,936 KB
testcase_10 AC 91 ms
76,840 KB
testcase_11 AC 84 ms
77,012 KB
testcase_12 AC 80 ms
77,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N, M = map(int, input().split())
S = input()[:-1]
T = input()[:-1]
c1 = Counter(S)
c2 = Counter(T)
print(min(c1['A'], c2['A'])+min(c1['B'], c2['B']))
0