aytdev

problem c201050

May 2nd, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define ps(x,y) fixed<<setprecision(y)<<x
  5. #define w(t) int x;cin>>x;while(x--)
  6. #define pi 2*acos(0.0)
  7. #define bg begin()
  8. #define en end()
  9. #define all(x) x.begin(),x.end()
  10. #define sortarr(x) sort(x,x+arrsize(x))
  11. #define arrsize(x) sizeof(x)/sizeof(x[0])
  12. #define sortall(x) sort(all(x))
  13. #define formn(m,n) for(m;m<=n;m++)
  14. #define el endl
  15. #define pb push_back
  16. #define vi vector<ll>
  17. #define vs vector<string>
  18. #define REP(i,a,b) for (int i=a;i<=b;i++)
  19. #define sq(a) (a)*(a)
  20. //solution
  21. int solve(){
  22. string a,b;
  23. int j=0;
  24. getline(cin,a);
  25. getline(cin,b);
  26. REP(i,0,a.size()-1){
  27. if(a[i]=='A' || a[i]=='E' || a[i]=='I' || a[i]=='O' || a[i]=='U'){
  28. cout<<a[i];
  29. j++;
  30. }
  31. }
  32. cout<<" ";
  33. REP(i,0,b.size()-1){
  34. if(b[i]=='A' || b[i]=='E' || b[i]=='I' || b[i]=='O' || b[i]=='U'){
  35. cout<<b[i];
  36. j++;
  37. }
  38. }
  39. cout<<endl;
  40. cout<<j;
  41.  
  42.  
  43. return 0;
  44. }
  45. //end solution
  46. int main(){
  47. solve();
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment