1 solutions

  • 0
    @ 2025-12-9 13:12:39
    #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;
    }
    
    • 1

    Information

    ID
    101
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By