結果
問題 |
No.2920 Blood Type
|
ユーザー |
![]() |
提出日時 | 2024-10-13 21:15:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 81,932 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-10-13 21:15:41 |
合計ジャッジ時間 | 2,739 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S=input() T=input() ans=[0]*4 for s in S: for t in T: blood=set([s,t]) if 'A' in blood and 'B' not in blood: ans[0]+=25 if 'B' in blood and 'A' not in blood: ans[1]+=25 if 'A' in blood and 'B' in blood: ans[2]+=25 if 'A' not in blood and 'B' not in blood: ans[3]+=25 print(*ans)