2 해설

  • 2
    @ 2025-11-21 12:52:13

    这题是小学生该做的幼儿园级别题吗??? 看代码: #include<bits/stdc++.h>

    using namespace std;

    int main(){

    string s;

    int t=1;

    cin>>s;

    for(int i=0;i<s.size();i++){

    if(s[i]=='.') break;

    if(s[i]>='A'&&s[i]<='Z'){

    t++;

    }

    }

    cout<<t;

    return 0;

    }

    • 2
      @ 2025-11-21 12:49:18

      题目太简单了,直接上代码!

      #include<bits/stdc++.h>

      using namespace std;

      int main(){

      string s;

      int t=1;

      cin>>s;

      for(int i=0;i<s.size();i++){

      if(s[i]=='.') break;

      if(s[i]>='A'&&s[i]<='Z'){

      t++;

      }

      }

      cout<<t;

      return 0;

      }

    • 1

    정보

    ID
    8
    시간
    1000ms
    메모리
    16MiB
    난이도
    4
    태그
    (N/A)
    제출 기록
    785
    맞았습니다.
    364
    아이디