結果

問題 No.163 cAPSlOCK
ユーザー morinaga
提出日時 2020-02-13 18:47:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 31,360 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-06 06:18:18
合計ジャッジ時間 1,499 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

using namespace std;

int main()
{
    char pass[100];
    scanf("%s", pass);

    for (int i = 0; i < 100; i++)
    {
        char c = pass[i];

        if (isupper(c))
        {
            pass[i] = tolower(c);
        }
        else
        {
            pass[i] = toupper(c);
        }
    }

    printf("%s", pass);
}
0