結果

問題 No.441 和か積
コンテスト
ユーザー testestest
提出日時 2016-11-28 04:12:15
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 130 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 177 ms
コンパイル使用メモリ 29,384 KB
最終ジャッジ日時 2026-02-23 23:01:10
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:2:39: warning: passing argument 1 of ‘strtol’ makes pointer from integer without a cast [-Wint-conversion]
    2 | char*t,s[999];long a;main(b){a=strtol(gets(s),&t,0);a>9?a=9:0;b=atoi(t);a=!putchar(a*b-a-b?a*b<a+b?83:80:69);}
      |                                       ^~~~~~~
      |                                       |
      |                                       int
In file included from main.c:1:
/usr/include/stdlib.h:177:48: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
  177 | extern long int strtol (const char *__restrict __nptr,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/bin/ld: /tmp/ccniJ1lv.o: in function `main':
main.c:(.text.startup+0x12): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

#include <stdlib.h>
char*t,s[999];long a;main(b){a=strtol(gets(s),&t,0);a>9?a=9:0;b=atoi(t);a=!putchar(a*b-a-b?a*b<a+b?83:80:69);}
0