第一题100 第三题90 第二题死活都是0,想了半天不知道自己错在哪,求解答~ n=int(input()) start=list(map(int,input().split(' '))) end=list(map(int,input().split(' '))) count=0 for i in range(1,n): for j in range(i): endi=end.index(start[i]) if start[j] in end[endi:]: count=count+1 break print(count)
点赞 评论

相关推荐

完美的潜伏者许愿简历通过:我上表jd,请求封我做后端大将军的事,北京有消息了:竟然不许!!! 他们一定是看我没有实习,这才故意驳回我的请求!
点赞 评论 收藏
分享
06-02 15:53
阳光学院 Java
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务