結果

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

ソースコード

diff #

S = input()
T = input()

pro = [(S[0], T[0]), (S[0], T[1]), (S[1], T[0]), (S[1], T[1])]

ans = [0, 0, 0, 0]
for i in range(4):
    t = pro[i]
    if "A" in t and "B" in t:
        ans[2] += 1
    elif "A" in t:
        ans[0] += 1
    elif "B" in t:
        ans[1] += 1
    else:
        ans[3] += 1

for i in range(4):
    print(25 * ans[i], end = " ")
0