結果
| 問題 | No.2920 Blood Type |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-09-25 09:41:14 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 66 ms / 2,000 ms |
| + 887µs | |
| コード長 | 479 bytes |
| 記録 | |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 95,688 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-09-04 00:11:30 |
| 合計ジャッジ時間 | 4,568 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
S = input()
T = input()
answers = [0, 0, 0, 0]
for s in S:
for t in T:
baby = [s, t]
if "A" in baby and "B" not in baby:
answers[0] += 25 # A型の場合
elif "B" in baby and "A" not in baby:
answers[1] += 25 # B型の場合
elif "A" in baby and "B" in baby:
answers[2] += 25 # AB型の場合
else:
answers[3] += 25 # O型の場合
print(*answers)