結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 16:30:12 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 25,216 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-03-03 16:30:14 |
| 合計ジャッジ時間 | 1,548 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <stdio.h>
#include <ctype.h>
void main(void){
char str[100] = {'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