結果

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

ソースコード

diff #

s = input()
t = input()
ab, a, b, o = 0, 0, 0, 0
for i in range(2):
    for j in range(2):
        blood = s[i] + t[j]
        if "A" in blood and "B" in blood:
            ab += 1
        elif "A" in blood:
            a += 1
        elif "B" in blood:
            b += 1
        elif "O" in blood:
            o += 1
print(a * 25, b * 25, ab * 25, o * 25)
0