結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2019-09-02 13:36:02 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 1,487 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 05:54:03 |
合計ジャッジ時間 | 1,281 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char str[100]; scanf("%s", str); for(int i=0;i<strlen(str);i++){ if(str[i]>='A'&&str[i]<='Z'){ str[i]+=32; }else{ str[i]-=32; } } printf("%s\n", str); }