結果

問題 No.2920 Blood Type
ユーザー H20
提出日時 2024-10-12 14:36:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,520 KB
実行使用メモリ 55,452 KB
最終ジャッジ日時 2024-10-12 14:36:46
合計ジャッジ時間 2,536 ms
ジャッジサーバーID
(参考情報)
judge2 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
S = list(input())
T = list(input())
ANS = [0]*4

for s in S:
    for t in T:
        B = collections.Counter([s,t])
        in_a = B['A']
        in_b = B['B']
        if in_a and in_b:
            ANS[2]+=25
        elif in_a:
            ANS[0]+=25
        elif in_b:
            ANS[1]+=25
        else:
            ANS[3]+=25
print(*ANS)



0