結果

問題 No.2920 Blood Type
ユーザー 高橋ゆに
提出日時 2024-10-22 20:20:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 722 ms
コンパイル使用メモリ 82,976 KB
実行使用メモリ 53,668 KB
最終ジャッジ日時 2024-10-22 20:20:21
合計ジャッジ時間 3,651 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()

probs = [0, 0, 0, 0]
A, B, AB, O = 0, 1, 2, 3

for s in S:
    for t in T:
        typ = {s, t}
        if 'A' in typ and 'B' in typ:
            probs[AB] += 25
        elif 'A' in typ:
            probs[A] += 25
        elif 'B' in typ:
            probs[B] += 25
        else:
            probs[O] += 25

print(*probs)
0