結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2018-06-15 22:15:38 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 419 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 14:58:24 |
合計ジャッジ時間 | 869 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
#include<stdio.h> int main(void){ char str[200]; int i; printf("パスワードを入力してください\n"); fgets(str,sizeof(str),stdin); for(i=0;i<200 && str[i]!='\0';i++){ if('A'<=str[i] && str[i]<='Z'){ str[i]+='a'-'A'; }else if('a'<=str[i] && str[i]<='Z'){ str[i]-='a'-'A'; } } printf("%s",str); return 0; }