#输入数据
n=int(input())
Xli=list(map(int,input().split()))
Yli=list(map(int,input().split()))
Zli=list(map(int,input().split()))#分别计算X-Y-Z/Y-Z-X/Z-X-Y并排序
newXli =sorted([Xli[i]- Yli[i]- Zli[i]for i inrange(n)],reverse=True)
newYli =sorted([Yli[i]- Xli[i]- Zli[i]for i inrange(n)],reverse=True)
newZli =sorted([Zli[i]- Xli[i]- Yli[i]for i inrange(n)],reverse=True)
cnt=-1#初始化每国士兵数量
x=y=z=0#统计事件for i inrange(n):x+=newXli[i]y+=newYli[i]z+=newZli[i]if x>0or y>0or z>0:cnt=max(cnt,i+1)#输出结果if cnt!=1:print(cnt)else:print(-1)
2.填充
代码
s =input()
n =len(s)
l =['00','11','0?','1?','?0','?1','??']
cnt =0
i =0while i < n:if s[i:i+2]in l:# 在列表的元素都个数加一然后越过已判断子串cnt+=1i+=2else:i+=1print(cnt)
SecurityException: JCE cannot authenticate the provider BC 问题
hutool.crypto.CryptoException: SecurityException: JCE cannot authenticate the provider BC 先分析异常描述解决方案
先分析异常的描述 JCE cannot authenticate the provider BC:在使用带…