結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 16:29:11 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 460 ms |
| コンパイル使用メモリ | 24,960 KB |
| 実行使用メモリ | 8,608 KB |
| 最終ジャッジ日時 | 2025-03-03 16:29:14 |
| 合計ジャッジ時間 | 2,656 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 RE * 9 |
ソースコード
#include <stdio.h>
#include <ctype.h>
void main(void){
char str[53] = {'a'};
int inputStr = scanf("%s",str);
if(inputStr == 2){
printf("strの入力ミス\n");
}
int i = 0;
while(str[i] != '\0'){
if(isupper(str[i])){
printf("%c",tolower(str[i]));
}else{
printf("%c",toupper(str[i]));
}
i++;
}
printf("\n");
}
Maeda