1 条题解

  • 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

    信息

    ID
    101
    时间
    1000ms
    内存
    16MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者