結果
問題 | No.2920 Blood Type |
ユーザー |
|
提出日時 | 2024-10-12 14:36:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-12 14:36:34 |
合計ジャッジ時間 | 2,203 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
s=input()t=input()d={"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:d["A"]+=1elif "B" in st and "A" not in st:d["B"]+=1elif "A" in st and "B" in st:d["AB"]+=1else:d["O"]+=1print(d["A"]*25,d["B"]*25,d["AB"]*25,d["O"]*25)