結果

問題 No.2920 Blood Type
ユーザー i_taku
提出日時 2025-10-17 10:31:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 422 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 54,056 KB
最終ジャッジ日時 2025-10-17 10:31:39
合計ジャッジ時間 3,617 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()
L = 2
assert len(S) == len(T) == L
C = [0] * 4
for i in range(L):
    for j in range(L):
        if 'A' in (S[i], T[j]) and 'B' not in (S[i], T[j]):
            C[0] += 1
        elif 'B' in (S[i], T[j]) and 'A' not in (S[i], T[j]):
            C[1] += 1
        elif 'A' in (S[i], T[j]) and 'B' in (S[i], T[j]):
            C[2] += 1
        else:
            C[3] += 1
print(*[c * 25 for c in C])
0