#include <iostream>
#include<cstdio>
#include<cstring>
using namespace std;
char m[85];
int main()
{
int _;
scanf("%d",&_);
while(_--){
scanf("%s",m);
int len=strlen(m);
int num=0,ans=0;
for(int i=0;i<len;i++){
if(m[i]=='X'){
num=0;
}
else {
num++;
ans+=num;
}
}
cout << ans << endl;
}
return 0;
}
x3-1
猜你喜欢
转载自blog.csdn.net/foolishpichao/article/details/100103776
今日推荐
周排行