結果

問題 No.163 cAPSlOCK
ユーザー akichi
提出日時 2017-08-17 16:17:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 56,620 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-14 13:50:45
合計ジャッジ時間 1,478 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	int len = s.length();
	for (int i = 0; i < len; i++)
	{
		if (s[i] < 91)s[i] += 32;
		else s[i] -= 32;
	}
	cout << s << "\n";
	return 0;
}
0