結果

問題 No.717 ファッションへのこだわり
ユーザー nadarenadare
提出日時 2018-07-27 22:27:53
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 8,604 KB
最終ジャッジ日時 2023-09-18 09:43:30
合計ジャッジ時間 1,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,492 KB
testcase_01 AC 18 ms
8,448 KB
testcase_02 AC 18 ms
8,416 KB
testcase_03 AC 18 ms
8,596 KB
testcase_04 AC 17 ms
8,496 KB
testcase_05 AC 18 ms
8,604 KB
testcase_06 AC 18 ms
8,576 KB
testcase_07 AC 19 ms
8,456 KB
testcase_08 AC 19 ms
8,480 KB
testcase_09 AC 19 ms
8,588 KB
testcase_10 AC 18 ms
8,424 KB
testcase_11 AC 18 ms
8,416 KB
testcase_12 AC 19 ms
8,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
from collections import Counter

N, M = map(int, input().split())
S = Counter(input())
T = Counter(input())

print(min(S["A"], T["A"]) + min(S["B"], T["B"]))
0