結果
| 問題 | No.2920 Blood Type | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2024-07-27 12:30:21 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 532 bytes | 
| コンパイル時間 | 501 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 52,352 KB | 
| 最終ジャッジ日時 | 2024-07-27 12:30:25 | 
| 合計ジャッジ時間 | 3,771 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 36 | 
ソースコード
S = input()
T = input()
answers = [0, 0, 0, 0]
for s in S:
    for t in T:
        child = [s, t]
        
        if child.count('A') >= 1 and child.count('B') == 0:
            answers[0] += 25 # A型の場合
        
        elif child.count('A') == 0 and child.count('B') >= 1:
            answers[1] += 25 # B型の場合
        
        elif child.count('A') >= 1 and child.count('B') >= 1:
            answers[2] += 25 # AB型の場合
        
        else:
            answers[3] += 25 # O型の場合
print(*answers)
            
            
            
        