fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. #include <cmath>
  5. #include <stack>
  6. #include <vector>
  7. #include <deque>
  8. #include <queue>
  9. #define _CRT_SECURE_NO_WARNINGS
  10. #define JFT20 ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  11. #define ss string
  12. #define ll long long
  13. #define big INT_MAX
  14. #define small INT_MIN
  15. #define bigg LONG_MAX
  16. #define smalll LONG_MIN
  17. #define all(x) (x.begin(),x.end())
  18. #define sz(x) x.size()
  19. #define nn int nn; cin>>nn; int n=nn;
  20.  
  21. using namespace std;
  22.  
  23. int main() {
  24.  
  25. JFT20
  26.  
  27. ss str;
  28. cin >> str;
  29.  
  30. char test = tolower(str[0]);
  31.  
  32. for (int i = 0;i < sz(str);i++) {
  33.  
  34. str[i] = tolower(str[i]);
  35.  
  36. if (str[i] != test && str[i] != test - 1) {
  37. cout << test;
  38. break;
  39. }
  40. else {
  41. test++;
  42. continue;
  43. }
  44. }
  45.  
  46.  
  47. return 0;
  48. }
  49.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
Standard output is empty