397164A - Another Sanity Check, Why Not?
Idea: FazeCT
Tutorial
First, you have to check if n is in one of the following 3 ranges: $$$48 \le n \le 57$$$, $$$65 \le n \le 90$$$, $$$97 \le n \le 122$$$. If no, then output "Lmao".
If yes, use char() to output the character associated with the number n.
Solution
\begin{lstlisting} //--------------------------------------------------------------------
include <bits/stdc++.h>
using namespace std; //-------------------------------------------------------------------- void solve() { int n; cin >> n; if(n<48 || (n>57 && n<65) || (n>90 && n<97) || n>122) cout << "Lmao" << endl; else cout << char(n) << endl; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); solve(); } \end{lstlisting}




