結果

問題 No.163 cAPSlOCK
ユーザー カルロス
提出日時 2015-09-09 15:45:06
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 05:04:23
合計ジャッジ時間 826 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <ctype.h>

int main(void){
    char s;
    while(1){
        s = getchar();
        if(isupper(s)){
            s = tolower(s);
            printf("%c", s);
        }else if(islower(s)){
            s = toupper(s);
            printf("%c", s);
        }else{
            printf("\n");
            break;
        }
    }
    return 0;
}
0