以下の内容はhttps://blog.hamayanhamayan.com/entry/2020/06/23/192815より取得しました。


αlphabet [AtCoder Beginner Contest 171 A]

https://atcoder.jp/contests/abc171/tasks/abc171_a

解説

https://atcoder.jp/contests/abc171/submissions/14610931

大文字小文字の判定が求められているが、C++であればasciiで比較するのが手っ取り早い。
大文字ならAZの間のasciiコードになるので、単純に比較してやればいい。

char c;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> c;
    if ('A' <= c && c <= 'Z') cout << "A" << endl;
    else cout << "a" << endl;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2020/06/23/192815より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14