結果

問題 No.2920 Blood Type
ユーザー ryuuichi
提出日時 2024-10-12 14:37:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-12 14:37:39
合計ジャッジ時間 1,942 ms
ジャッジサーバーID
(参考情報)
judge3 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

S=list(input())
T=list(input())
a,b,ab,o=0,0,0,0
for i in range(2):
    for j in range(2):
        st=[S[i],T[j]]
        if "A" in st and "B" in st:
            ab+=25
        elif "A" in st and not ("B" in st):
            a+=25
        elif "B" in st and not ("A" in st):
            b+=25
        else:
            o+=25
print(a,b,ab,o) 
        
0