結果
| 問題 |
No.717 ファッションへのこだわり
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2018-07-27 22:31:23 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 233 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-05 01:40:57 |
| 合計ジャッジ時間 | 1,110 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
if __name__ == '__main__':
n, m = map(int, input().split())
shirts = list(input())
pants = list(input())
a = min(shirts.count('A'), pants.count('A'))
b = min(shirts.count('B'), pants.count('B'))
print(a + b)
neko_the_shadow