結果

問題 No.163 cAPSlOCK
ユーザー Lay_ec
提出日時 2015-03-12 23:42:46
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 484 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 81,460 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 22:33:07
合計ジャッジ時間 1,256 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <set>
#include <sstream>
#include <map>
#include <queue>
#include <stack>

using namespace std;
 
const unsigned long long mod = 1000000000+7;

int main()
{
	string s;
	cin>>s;

	for(int i=0;i<s.size();i++){
		if(s[i]<='Z') s[i]=(s[i]-'A')+'a';
		else s[i]=(s[i]-'a')+'A';
	}
	cout<<s<<endl;

	return 0;
}
0