#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, l, r) for(int i = l ; i <= r ; i++)
#define REP(i, l, r) for(int i = l ; i < r ; i++)
#define fi first
#define se second
const bool Multitest = 0;
const int N = 2e5 + 10;
void work()
{
string x; int cnt = 0;
while(cin >> x) cnt++;
cout << cnt;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int q = 1;
if(Multitest) cin >> q;
while(q--) work();
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |