結果

問題 No.2920 Blood Type
ユーザー うにれ
提出日時 2024-10-12 14:48:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 369 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 81,968 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-10-12 14:48:06
合計ジャッジ時間 2,391 ms
ジャッジサーバーID
(参考情報)
judge / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
mod = 998244353
mod2 = 10**9+7

S = input()
T = input()
per = [0] * 4
for s in S:
    for t in T:
        if (s == "A" or t == "A") and s !="B" and t != "B":per[0] += 25
        elif (s == "B" or t == "B") and s !="A" and t != "A":per[1] += 25
        elif (s == "A" or t == "A") and (s == "B" or t == "B"):per[2] += 25
        else:per[3] += 25
print(*per)
0