結果
問題 | No.717 ファッションへのこだわり |
ユーザー | nebukuro09 |
提出日時 | 2018-07-27 22:22:13 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-07-05 01:00:26 |
合計ジャッジ時間 | 995 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
N, M = map(int, raw_input().split()) A = raw_input() B = raw_input() print min(A.count('A'), B.count('A')) + min(A.count('B'), B.count('B'))