結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-22 14:36:01 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 195 ms |
| コンパイル使用メモリ | 37,344 KB |
| 最終ジャッジ日時 | 2026-02-22 01:03:22 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
#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;
}