結果

問題 No.2920 Blood Type
ユーザー ryuusagi
提出日時 2024-10-12 14:34:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 53,708 KB
最終ジャッジ日時 2024-10-12 14:35:01
合計ジャッジ時間 2,374 ms
ジャッジサーバーID
(参考情報)
judge / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t = input()
l = [s[0] + t[0], s[0] + t[1], s[1] + t[0], s[1] + t[1]]
p = [0] * 4
for i in l:
    if 'A' in i and 'B' in i:
        p[2] += 25
    elif 'A' in i:
        p[0] += 25
    elif 'B' in i:
        p[1] += 25
    else:
        p[3] += 25
print(*p)
0