結果

問題 No.717 ファッションへのこだわり
ユーザー osrgy01osrgy01
提出日時 2021-04-25 13:43:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 8,556 KB
最終ジャッジ日時 2023-09-17 14:03:47
合計ジャッジ時間 1,729 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,528 KB
testcase_01 AC 19 ms
8,372 KB
testcase_02 AC 19 ms
8,532 KB
testcase_03 AC 19 ms
8,412 KB
testcase_04 AC 18 ms
8,384 KB
testcase_05 AC 19 ms
8,476 KB
testcase_06 AC 18 ms
8,528 KB
testcase_07 AC 19 ms
8,384 KB
testcase_08 AC 20 ms
8,416 KB
testcase_09 AC 21 ms
8,416 KB
testcase_10 AC 19 ms
8,556 KB
testcase_11 AC 20 ms
8,484 KB
testcase_12 AC 19 ms
8,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

n,m=map(int,input().split())
s,t=Counter(input()),Counter(input())
print(min(s['A'],t['A'])+min(s['B'],t['B']))
0