Advertisement
Yigabyte

Untitled

Oct 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. typedef long long ll;
  5. int main()
  6. {
  7.     string n;
  8.     ll aux=0;
  9.     cin>>n;
  10.     for(int i=1;i<n.size();i++)
  11.     {
  12.         if(n[i]=='e')
  13.         {
  14.             aux++;
  15.         }
  16.         //cout<<aux;
  17.     }
  18.     cout<<"h";
  19.     for(int i=0;i<2*aux;i++)
  20.     {
  21.         cout<<"e";
  22.     }
  23.     cout<<"y";
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement