結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-10-12 14:36:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 988 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,232 KB |
実行使用メモリ | 57,868 KB |
最終ジャッジ日時 | 2024-10-12 14:36:26 |
合計ジャッジ時間 | 2,623 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
from collections import defaultdict, deque, Counter# from functools import cache# import copyfrom itertools import combinations, permutations, product, accumulate, groupby, chain# from more_itertools import distinct_permutationsfrom heapq import heapify, heappop, heappushimport mathimport bisect# from pprint import pprintfrom random import randint, shuffle, randrange# from sortedcontainers import SortedSet, SortedList, SortedDictimport sys# sys.setrecursionlimit(2000000)input = lambda: sys.stdin.readline().rstrip('\n')inf = float('inf')mod1 = 10**9+7mod2 = 998244353def ceil_div(x, y): return -(-x//y)#################################################def son(s, t):x = s+tif "A" in x and "B" in x:return 2elif "A" in x:return 0elif "B" in x:return 1return 3S = input()T = input()P = [0, 0, 0, 0]idx = {"A": 0, "B": 1}for i in range(2):for j in range(2):P[son(S[i], T[j])] += 25print(*P)