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:
parent
a566d63c0b
commit
00fd468bbe
17
Luogu/problem/B2120/B2120.cpp
Normal file
17
Luogu/problem/B2120/B2120.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user