結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-11-03 22:20:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 82,404 KB |
実行使用メモリ | 54,288 KB |
最終ジャッジ日時 | 2024-11-03 22:20:17 |
合計ジャッジ時間 | 3,286 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S = input()T = input()ans = [0] * 4for s in S:for t in T:D = [s, t]if "A" in D and "B" not in D:ans[0] += 25elif "B" in D and "A" not in D:ans[1] += 25elif "A" in D and "B" in D:ans[2] += 25else:ans[3] += 25print(*ans)