結果

問題 No.163 cAPSlOCK
ユーザー zaichu
提出日時 2015-12-20 02:33:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 1,601 ms
コンパイル使用メモリ 158,588 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 11:17:37
合計ジャッジ時間 2,240 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	string str;
	cin >> str;
	for(int i = 0; i < str.size(); i++){
		if(65 <= (int)str[i] || (int)str[i] <= 90) str[i] += 32;
		else if(97 <= (int)str[i] || (int)str[i] <= 122) str[i] -= 32;
	}
	cout << str << endl;
	return 0;
}
0