結果
| 問題 | No.2920 Blood Type |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-07 11:35:08 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 371µs | |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-08-25 13:38:20 |
| 合計ジャッジ時間 | 4,620 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
s=input()
t=input()
x=[0]*4
for i in s:
for j in t:
st=set([i,j])
if "A"in st and "B"not in st:x[0]+=1
elif "B"in st and "A"not in st:x[1]+=1
elif "A"in st and "B"in st:x[2]+=1
else:x[3]+=1
t=sum(x)
for i in range(4):
x[i]=100*x[i]//t
print(*x)