結果

問題 No.163 cAPSlOCK
ユーザー marimom7
提出日時 2015-10-09 11:23:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 225 bytes
コンパイル時間 418 ms
コンパイル使用メモリ 54,536 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-20 02:22:01
合計ジャッジ時間 1,240 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(){

	char str[100];
	char charcode = 32;

	cin >> str;

	for(int i = 0; str[i]; i++)str[i] += str[i] < (int)'a' ? charcode : -charcode;
	
	cout << str << endl;

	return 0;
}
0