12 条题解

  • 1
    @ 2025-3-1 15:58:14

    👍

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
       string n;
       string s;
       getline(cin,n);
       getline(cin,s);
       int count=0;
       for(int i=0;i<stoi(n);i++){
          if(s[i]!=' ') count++;
       }
       cout<<count; 
       return 0;
    }
    

    信息

    ID
    12
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    2003
    已通过
    534
    上传者