結果

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

ソースコード

diff #

from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations
from functools import cmp_to_key, cache
from heapq import heappop, heappush
import math, sys
import pypyjit
pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10**7)
_int = lambda x: int(x)-1
MOD = 998244353
INF = 1<<62
Yes, No = "Yes", "No"

S = input()
T = input()

a, b, ab, o = 0, 0, 0, 0
for i in range(2):
    for j in range(2):
        st = {S[i], T[j]}
        if "A" in st and "B" in st:
            ab += 25
        elif "A" in st:
            a += 25
        elif "B" in st:
            b += 25
        else:
            o += 25
print(a, b, ab, o)
0