mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 08:10:27 +08:00
18 lines
184 B
C++
18 lines
184 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
char ch;
|
|
int cnt = 1;
|
|
while(ch != '.')
|
|
{
|
|
ch = getchar();
|
|
if(ch == ' ')
|
|
{
|
|
cnt ++ ;
|
|
}
|
|
}
|
|
cout << cnt ;
|
|
return 0;
|
|
} |