結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-30 15:17:14 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 521 ms |
| コンパイル使用メモリ | 28,800 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 14:31:24 |
| 合計ジャッジ時間 | 1,431 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <stdio.h>
#include <ctype.h>
int main() {
char str[100] = {'\0'};
int i;
scanf("%s", str);
for (i = 0; i < 100; i++) {
if (isupper(str[i]) != 0) {
str[i] = tolower(str[i]);
} else if (isupper(str[i]) == 0) {
str[i] = toupper(str[i]);
} else {
break;
}
}
printf("%s\n", str);
}