結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2019-09-13 00:26:43 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 17:19:12 |
合計ジャッジ時間 | 1,040 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { | ^~~~
ソースコード
#include <stdio.h> main() { char str[128]; scanf("%s", str); for (int i=0; i<128; i++) { if (str[i] == 0) break; if (str[i] >= 'a') printf("%c", str[i] - ('a' - 'A')); else printf("%c", str[i] + ('a' - 'A')); } }