結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
mamo_ICE
|
| 提出日時 | 2022-12-09 19:08:08 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 216 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 18:47:29 |
| 合計ジャッジ時間 | 1,046 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function 'main':
main.c:7:5: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
7 | gets(str);
| ^~~~
| fgets
/usr/bin/ld: /tmp/ccdOrFBU.o: in function `main':
main.c:(.text.startup+0xe): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h>
int main(void){
char str[101], *p;
p = str;
gets(str);
while(*p){
if(*p <= 90) putchar(*p + 32);
else putchar(*p - 32);
p++;
}
return 0;
}
mamo_ICE