1. 문제
https://www.acmicpc.net/problem/8958
2. 풀이
for _ in range(int(input())):
print(int(sum([ len(x)*(len(x)+1)/2 for x in input().split('X')])))
PREVIOUS[백준] 3052번 나머지 _ 문제 풀이
https://www.acmicpc.net/problem/8958
for _ in range(int(input())):
print(int(sum([ len(x)*(len(x)+1)/2 for x in input().split('X')])))