結果
| 問題 | No.2920 Blood Type |
| コンテスト | |
| ユーザー |
northward
|
| 提出日時 | 2024-10-12 17:18:36 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 367µs | |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-14 23:38:36 |
| 合計ジャッジ時間 | 2,805 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
from collections import Counter
S = list(input())
T = list(input())
cnt = Counter()
for s in S:
for t in T:
p = [s, t]
if 'A' in p and 'B' not in p:
cnt['A'] += 25
elif 'A' not in p and 'B' in p:
cnt['B'] += 25
elif 'A' in p and 'B' in p:
cnt['AB'] += 25
else:
cnt['O'] += 25
print(cnt['A'], cnt['B'], cnt['AB'], cnt['O'])
northward