結果

問題 No.717 ファッションへのこだわり
ユーザー mizocoder
提出日時 2018-08-02 10:33:34
言語 Ruby
(3.4.1)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-09-19 17:05:01
合計ジャッジ時間 1,753 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;
tops, bottoms = Hash.new(0), Hash.new(0)

gets.chomp.chars do |i|
	tops[i.to_s] += 1
end

gets.chomp.chars do |i|
	bottoms[i.to_s] += 1
end

print [tops["A"], bottoms["A"]].min + [tops["B"], bottoms["B"]].min

0