結果

問題 No.809 かけ算
コンテスト
ユーザー takahiro-serikawa
提出日時 2019-04-14 08:12:23
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 100 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 155 ms
コンパイル使用メモリ 31,924 KB
最終ジャッジ日時 2026-02-24 01:02:55
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:6:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
    6 |     gets(s+2);
      |     ^~~~
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/ccSbTkJz.o: in function `main':
main.c:(.text.startup+0x1d): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

#include <stdio.h>

int main()
{
    char s[13] = "1 ";
    gets(s+2);
    puts(s);
    return 0;
}
0