結果
問題 |
No.2920 Blood Type
|
ユーザー |
![]() |
提出日時 | 2024-10-17 09:41:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 67 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 427 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-10-17 09:41:52 |
合計ジャッジ時間 | 3,224 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S = input() T = input() PA = 0 PB = 0 PAB = 0 PO = 0 for s in S: for t in T: types = set() types.add(s) types.add(t) if "A" in types and "B" not in types: PA += 25 elif "B" in types and "A" not in types: PB += 25 elif "A" in types and "B" in types: PAB += 25 else: PO += 25 print(PA,PB,PAB,PO)