結果
問題 | No.2920 Blood Type |
ユーザー |
|
提出日時 | 2024-09-07 11:35:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 296 bytes |
コンパイル時間 | 425 ms |
コンパイル使用メモリ | 82,164 KB |
実行使用メモリ | 53,532 KB |
最終ジャッジ日時 | 2024-09-07 11:35:12 |
合計ジャッジ時間 | 3,180 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
s=input()t=input()x=[0]*4for i in s:for j in t:st=set([i,j])if "A"in st and "B"not in st:x[0]+=1elif "B"in st and "A"not in st:x[1]+=1elif "A"in st and "B"in st:x[2]+=1else:x[3]+=1t=sum(x)for i in range(4):x[i]=100*x[i]//tprint(*x)