結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-10-12 14:36:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,520 KB |
実行使用メモリ | 55,452 KB |
最終ジャッジ日時 | 2024-10-12 14:36:46 |
合計ジャッジ時間 | 2,536 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
import collectionsS = list(input())T = list(input())ANS = [0]*4for s in S:for t in T:B = collections.Counter([s,t])in_a = B['A']in_b = B['B']if in_a and in_b:ANS[2]+=25elif in_a:ANS[0]+=25elif in_b:ANS[1]+=25else:ANS[3]+=25print(*ANS)