結果

問題 No.163 cAPSlOCK
ユーザー Mcpu3
提出日時 2018-04-22 14:36:01
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 28,544 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 05:38:19
合計ジャッジ時間 880 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(void)
{
	char s[101];
	scanf("%s", s);
	for (int i = 0; i < strlen(s); i++) {
		if ('A' <= s[i] && s[i] <= 'Z') s[i] += 32;
		if ('a' <= s[i] && s[i] <= 'z') s[i] -= 32;
	}
	printf("%s\n", s);
	return 0;
}
0