15 条题解

  • 1
    @ 2025-1-25 11:21:14
    #include <iostream>
    #include <bits/stdc++.h>
    using namespace std;
    const int N=1e7+10;
    const int INF=0x3f3f3f3f;
    char a[505];
    bool f=0;
    int main()
    {
    while(cin>>a)
    {
    if(f==1)
    {
    cout<<","<<strlen(a);
    }
    else
    {
    cout<<strlen(a);
    f=1;
    }
    }
    
    }
    
    

    信息

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