fork download
  1. #include <bits/stdc++.h>
  2. #define fi first
  3. #define se second
  4. #define pb push_back
  5. #define ll long long
  6. #define endl "\n"
  7. #define __WaffledCookies__ signed main
  8. using namespace std;
  9.  
  10. const int N = 2e5 + 5, mod = 1e9 + 7, base = 167;
  11. int tc, n;
  12. string s;
  13. void solve()
  14. {
  15. cin >> n >> s;
  16. s= ' ' + s;
  17. for(int i = 1; i <= n; ++i) {
  18. if(s[i] == 'A') cout << "Alpha";
  19. else if(s[i] == 'B') cout << "Bravo";
  20. else cout << "Charlie";
  21. cout << ' ';
  22. }
  23. return;
  24. }
  25. __WaffledCookies__()
  26. {
  27.  
  28. ios_base::sync_with_stdio(0);
  29. cin.tie(0); cout.tie(0);
  30. tc = 1;
  31. //cin >> tc;
  32. while(tc--) solve();
  33. return 0;
  34. }
  35.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
Standard output is empty