#include <vector> #include <iostream> #include <string> using namespace std; int main() { string word; cin >> word; int num = 0,t=0; for (int i = 0; i < (int)word.size(); i++) { if (word[i] == 'X') { t = 0; continue; } t++; num += t; } cout << num << endl; return 0; }
3-1 得分 UVa1585
猜你喜欢
转载自blog.csdn.net/fuwu4087/article/details/80381978
今日推荐
周排行