結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2025-03-03 16:26:19 |
言語 | C (gcc 13.3.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 24,960 KB |
実行使用メモリ | 1,408 KB |
最終ジャッジ日時 | 2025-03-03 16:28:38 |
合計ジャッジ時間 | 135,634 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | OLE * 3 |
other | OLE * 20 |
ソースコード
#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])); } } printf("\n"); }