結果
| 問題 |
No.2920 Blood Type
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2025-04-02 03:55:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| コンパイル時間 | 504 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-04-02 03:55:28 |
| 合計ジャッジ時間 | 3,147 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 9 |
ソースコード
from collections import defaultdict
def fun(s, t):
dic = defaultdict(int)
for si in s:
for ti in t:
it = [*{si, ti} - {"O"}]
it.sort()
it = "".join(it)
dic[it] += 1
res = []
for it in "A,B,AB,O".split(","):
res += [dic[it] * 25]
return " ".join(f"{it}" for it in res)
st = [input() for _ in range(2)]
print(fun(*st))
toshiro_yanagi