結果
問題 | 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 = 0PB = 0PAB = 0PO = 0for 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 += 25elif "B" in types and "A" not in types:PB += 25elif "A" in types and "B" in types:PAB += 25else:PO += 25print(PA,PB,PAB,PO)