3 lines
99 B
Python
3 lines
99 B
Python
N=int(input())
|
|
for i in range(N) :
|
|
print(sum(len(c)*(len(c)+1)//2 for c in input().split('X'))) |