結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー testestest
提出日時 2016-12-04 07:51:03
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 2 ms / 3,000 ms
コード長 69 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 194 ms
コンパイル使用メモリ 33,588 KB
最終ジャッジ日時 2026-02-23 23:14:04
ジャッジサーバーID
(参考情報)
judge1 / judge2
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:2:1: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    2 | char s[2];main(){return!printf("%d",!*(gets(s)));}
      | ^~~~
In file included from main.c:1:
/usr/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/ccQdE8Yf.o: in function `main':
main.c:(.text.startup+0xc): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

#include <stdio.h>
char s[2];main(){return!printf("%d",!*(gets(s)));}
0