fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. const int E=1e5+5;
  5.  
  6. #define end '\n'
  7. #define ll long long
  8. #define pb push_back
  9. #define re return 0
  10.  
  11. int A[E];
  12. int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, q, r, x, y, z;
  13. string s, t[]={"01", "1000", "1010", "100", "0", "0010", "110", "0000", "00", "0111", "101", "0100", "11", "10", "111", "0110", "1101", "010", "000", "1", "001", "0001", "011", "1001", "1011", "1100"}, u, w;
  14. bool ok, fine, pass;
  15. vector <int> v;
  16. queue <int> p;
  17.  
  18. int main (){
  19. ios_base::sync_with_stdio(0);
  20. cin.tie(0); cout.tie(0);
  21. while (cin>>s){
  22. for (int q=0; q<s.length(); q++){
  23. d=s[q]-97;
  24. for (int w=0; w<t[d].length(); w++){
  25. if (t[d][w]=='0'){
  26. cout<<"meow";
  27. }
  28. else{
  29. cout<<"meooow";
  30. }
  31. }
  32. cout<<' ';
  33. }
  34. cout<<endl<<endl;
  35. }
  36. }
  37.  
Success #stdin #stdout 0s 15632KB
stdin
hello world
stdout
meowmeowmeowmeow meow meowmeooowmeowmeow meowmeooowmeowmeow meooowmeooowmeooow 

meowmeooowmeooow meooowmeooowmeooow meowmeooowmeow meowmeooowmeowmeow meooowmeowmeow