mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-14 05:58:47 +00:00
18 lines
282 B
C++
18 lines
282 B
C++
|
#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;
|
||
|
}
|