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

TOP

返回列表