提交时间:2025-04-17 14:38:15
运行 ID: 317994
n=int(input()) a=input() ma=c=0 for i in range(n): if a[i]=='A': c+=1 if c>ma: ma=c else: c=0 print(ma)