結果

問題 No.163 cAPSlOCK
ユーザー N/A
提出日時 2018-07-12 14:46:06
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-01 21:11:07
合計ジャッジ時間 1,280 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>

int main(void){
	int i;
	char str[256];

	scanf("%s", &str);
	for (i = 0; i < strlen(str); i++) {
		if (str[i] >= 97)
			str[i] = str[i] - 32;
		else
			str[i] = str[i] + 32;
	}

	printf("%s\n", str);

	return 0;
}
0