結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-06-15 18:43:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 439 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-06-15 18:43:34 |
合計ジャッジ時間 | 3,764 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S = input()T = input()ans = [0,0,0,0]for s in S:for t in T:st = s+tif "A" in st and not "B" in st:ans[0] += 25elif "B" in st and not "A" in st:ans[1] += 25elif "A" in st and "B" in st:ans[2] += 25else:ans[3] += 25print(*ans)