結果

問題 No.2920 Blood Type
ユーザー YuuuT
提出日時 2024-10-12 15:40:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 995 bytes
コンパイル時間 675 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 54,784 KB
最終ジャッジ日時 2024-10-12 15:40:21
合計ジャッジ時間 2,655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

# oj t -c "python3 main.py"
import sys,math
from collections import defaultdict,deque
from itertools import combinations,permutations,accumulate,product
from bisect import bisect_left,bisect_right
from heapq import heappop,heappush,heapify
#from more_itertools import distinct_permutations,distinct_combinations
#from sortedcontainers import SortedList,SortedSet
def input():return sys.stdin.readline().rstrip()
def ii(): return int(input())
def ms(): return map(int, input().split())
def li(): return list(map(int,input().split()))
inf = pow(10,18)
mod = 998244353
#/////////////////////////////////
S = input()
T = input()
ans = [0]*4
for s in S:
    for t in T:
        if "A" in [s,t] and "B" not in [s,t]:
            ans[0] += 1
        if "A" not in [s,t] and "B" in [s,t]:
            ans[1] += 1
        if "A" in [s,t] and "B" in [s,t]:
            ans[2] += 1
        if "A" not in [s,t] and "B" not in [s,t]:
            ans[3] += 1

for a in ans:
    print(a*100//4,end=" ")
print()
0