結果

問題 No.163 cAPSlOCK
ユーザー mell1
提出日時 2018-11-22 15:31:48
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 52,828 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 17:39:19
合計ジャッジ時間 1,863 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main() {
    int i;
    char a;
    for (i=0; i<100; i++) {
        a = getchar();
        if (a < 65 || (a > 90 && a < 97) || a > 122) break;
        if (a >= 97) {
            a -= 32;
        } else {
            a += 32;
        }
        putchar(a);
    }
    return 0;
}
0