結果
| 問題 | No.2920 Blood Type |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 14:43:15 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 963µs | |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-14 20:11:55 |
| 合計ジャッジ時間 | 2,771 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
x = list(input())
y = list(input())
box = [0 for _ in range(4)]
A = ("AA", "AO")
B = ("BB", "BO")
AB = "AB"
for a in x:
for b in y:
t = sorted([a, b])
t = "".join(t)
if t == AB:
box[2] += 1
elif t in A:
box[0] += 1
elif t in B:
box[1] += 1
else:
box[3] += 1
ansl = []
for v in box:
p = v * 100 // 4
ansl.append(p)
print(*ansl)