結果

問題 No.2920 Blood Type
ユーザー ymsksky
提出日時 2024-10-12 15:44:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 81,980 KB
実行使用メモリ 53,608 KB
最終ジャッジ日時 2024-10-12 15:44:48
合計ジャッジ時間 2,655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t = input()
ans = [0] * 4
for c in s:
    for d in t:
        e = "".join([c, d])
        if "A" in e and "B" not in e:
            res = 0
        elif "B" in e and "A" not in e:
            res = 1
        elif "A" in e and "B" in e:
            res = 2
        else:
            res = 3
        ans[res] += 25
print(*ans)
0