結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-10-12 14:35:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 574 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-10-12 14:35:46 |
合計ジャッジ時間 | 2,320 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
# import heapq # from heapq import heappop,heappush,heapify # from sys import stdin, setrecursionlimit # input = stdin.readline # readline = stdin.readline # from collections import deque # d=deque() # N,M,K=map(int,input().split()) # A=list(map(int, input().split())) S=input() T=input() ans=[0,0,0,0] for i in range(2): for j in range(2): p=S[i]+T[j] if 'A' in p and 'B' not in p: ans[0]+=25 elif 'A' not in p and 'B' in p: ans[1]+=25 elif 'A' in p and 'B' in p: ans[2]+=25 else: ans[3]+=25 print(*ans)