結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-10-13 14:37:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 54,092 KB |
最終ジャッジ日時 | 2024-10-13 14:37:46 |
合計ジャッジ時間 | 2,368 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S = list(input())T = list(input())P = [0 for _ in range(4)]for s in S:for t in T:B = [s,t]if "A" in B and not "B" in B:P[0] += 1elif "B" in B and not "A" in B:P[1] += 1elif "A" in B and "B" in B:P[2] += 1else:P[3] += 1per = 100//(sum(P))for i in range(4):print(per*P[i], end=" ")