b=raw_input() see=raw_input() see=see.split(' ') Q=int(raw_input()) for i in range(Q):        tem=raw_input()        tem=[int(i) for i in tem.split(' ')]        res = see[(tem[0]-1):tem[1]]        res1=list(set(res))               print len(res1) 第二题不知道为什么这个做法只A了57%....
点赞 2

相关推荐

12-27 22:36
门头沟学院 Java
点赞 评论 收藏
分享
10-31 20:07
门头沟学院 Java
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务