AtCoderProblems 7
粛々と
問題メモし忘れた…
n,a,b=map(int,input().split()) n=n%(a+b) if n!=0 and n<=a: print('Ant') else: print('Bug')
https://atcoder.jp/contests/abc098/tasks/abc098_b
n=int(input()) a=input() max=0 for i in range(1,n): count=0 #print(a[:i],a[i:]) l=set(a[:i]) g=set(a[i:]) #print(l,g) for j in l: if j in g: count+=1 if max < count: max=count print(max)
以上