結果

問題 No.2920 Blood Type
ユーザー amesyu
提出日時 2024-10-12 17:56:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 1,653 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-10-12 17:56:20
合計ジャッジ時間 2,322 ms
ジャッジサーバーID
(参考情報)
judge5 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t = input()

a = 0
b = 0
ab = 0
o = 0
for i in range(2):
    for j in range(2):
        st = [s[i], t[j]]

        if "A" in st and "B" not in st:
            a += 100
        elif "B" in st and "A" not in st:
            b += 100
        elif "A" in st and "B" in st:
            ab += 100
        else:
            o += 100

print(a//4, b//4, ab//4, o//4)
0