結果

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

ソースコード

diff #

S = input()
T = input()

a = b = ab = o = 0
for s in S:
    for t in T:
        if s==t=='O':
            o += 25
        elif sorted((s,t))==['A','B']:
            ab += 25
        elif s=='A' or t=='A':
            a += 25
        else:
            b += 25
print(a,b,ab,o)
0