P5015 [NOIP2018 普及组] 标题统计

题目传送门

#include <bits/stdc++.h>

using namespace std;
string s;
int c;

int main() {
    while (cin >> s)
        c += s.size();
    printf("%d", c);
    return 0;
}
posted @ 2021-11-18 09:51  糖豆爸爸  阅读(37)  评论(0编辑  收藏  举报
Live2D