結果
| 問題 | No.2920 Blood Type |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-10-12 14:31:42 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 976µs | |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-14 19:54:28 |
| 合計ジャッジ時間 | 2,692 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
S=input()
T=input()
cnt=[0]*4
for s in S:
for t in T:
if s+t in ("AB","BA"):
cnt[2]+=1
elif s=="O" and t=="O":
cnt[3]+=1
elif "A" in s+t:
cnt[0]+=1
else:
cnt[1]+=1
for i in range(4):
cnt[i]*=25
print(*cnt)
vwxyz