#测试数据为[2,2000000000]范围内的偶数。限制400ms,较大值时间复杂度过不了。[图片]
import math def is_prime(n): if n == 1: return 0 for i in range(2, int(math.sqrt(n/2))+1,10): if n % i == 0: return 0 return True num=in...
bef=[] aft=[] org=[] bef+=(input().split(‘,’)) org=bef[:] for i in bef: if(bef.count(i)<=1): aft+=(i) if(bef.count(i)>=2): f=bef.count(i) while(...
m=int(input()) s=[] a=0 while a!=1: s.append(input().split()) a+=1 n=0 c=0 while(n<m): q=s[n] p=str(q) if(p.isdigit()): x=int(p) else: print(“n...
社交账号:
我要举报该,理由是: