0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-10 05:18:49 +00:00

B2120 单词的长度

R52970752
This commit is contained in:
Baoshuo Ren 2021-07-13 10:00:55 +08:00 committed by Baoshuo Ren
parent a566d63c0b
commit 00fd468bbe
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,17 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
bool flag = true;
while (cin >> s) {
if (flag) {
flag = false;
cout << s.size();
} else {
cout << ',' << s.size();
}
}
return 0;
}