abc151_a - Next Alphabet
29 Jan 2021 — Tags: easy — URL$C + 1$
Time complexity: $O(1)$
Memory complexity: $O(1)$
Click to show code.
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
int main(void)
{
ios::sync_with_stdio(false), cin.tie(NULL);
char c;
cin >> c;
cout << char(c + 1) << endl;
return 0;
}