結果

問題 No.2920 Blood Type
ユーザー hato336
提出日時 2024-10-12 14:32:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 85,860 KB
最終ジャッジ日時 2024-10-12 14:32:58
合計ジャッジ時間 6,329 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#alist = list(map(int,input().split()))
#alist = []
s = input().rstrip()
t = input().rstrip()
a,b,c,d = 0,0,0,0
for i in s:
    for j in t:
        x = set([i,j])
        if 'A' in x and 'B' not in x:
            a += 25
        elif 'A' not in x and 'B'  in x:
            b += 25
        elif 'A' in x and 'B' in x:
            c += 25
        else:
            d += 25
print(a,b,c,d)
0