#include <sstream> #include <iostream> using namespace std; int main() { int ans = 0; string all, pat; getline(cin, all); stringstream ss(all); while (ss >> pat) { ++ans; } cout << ans; return 0; }
使用您的 BCOI 通用账户