結果

問題 No.163 cAPSlOCK
ユーザー kuisiba
提出日時 2016-04-05 11:59:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 55,748 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 01:18:06
合計ジャッジ時間 1,449 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
    string s;
    cin >>s;
    for (size_t i = 0; i < s.size(); ++i) {
        char p = s.at(i);
        if (p < 91) {
            s.at(i) = static_cast<char>('p' + 32);
        } else {
            s.at(i) = static_cast<char>('p' - 32);
        }
    }
    cout << s << endl;
    return 0;
}
0