結果

問題 No.163 cAPSlOCK
ユーザー halship
提出日時 2017-06-19 19:44:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 260 bytes
コンパイル時間 1,231 ms
コンパイル使用メモリ 159,884 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 07:45:46
合計ジャッジ時間 1,970 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define repeat(i,n) for (int i = 0; (i) < (n); ++ (i))

int main() {
    string s; cin >> s;
    string ns;
    for (char c : s) {
        ns += islower(c) ? toupper(c) : tolower(c);
    }
    cout << ns << endl;
}
0