返回列表 發帖
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. string  str,s1,s2;
  4. int main(){
  5.     getline(cin,str);
  6.     for(char c:str){
  7.         if(c>='A' && c<='Z')
  8.             s1+=c;
  9.         else
  10.             s2+=c;
  11.     }
  12.     cout<<s1<<endl<<s2<<endl;
  13.     cout<<s1.length();
  14.     return 0;
  15. }
複製代碼

TOP

返回列表