15 条题解

  • 0
    @ 2025-1-25 11:25:13
    #include<iomanip>
    #include<cmath>
    #include<cstring>
    #include<algorithm>
    using namespace std;
    const int N=1e3+10;
    const int INF=0x3f3f3f3f;
    //char a[N];
    int ans;
    string a; 
    bool flag; 
    int main()
    {
    	while(cin>>a)
    	{
    		if(!flag)
    			flag=1;
    		else
    			cout<<",";
    		cout<<a.size(); 
    	}
    	return 0;
    }
     
    

    信息

    ID
    1095
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    770
    已通过
    264
    上传者