結果

問題 No.464 PPAP
コンテスト
ユーザー 👑 tails
提出日時 2016-12-17 01:38:37
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 244 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 178 ms
コンパイル使用メモリ 39,420 KB
最終ジャッジ日時 2026-02-23 23:51:02
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:9: warning: missing whitespace after the macro name
    1 | #define I{long p=0,q=0,r=1;for
      |         ^
main.c:4:14: warning: data definition has no type or storage class
    4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I(i=l=strlen(gets(s));i--;){b[i]=b[i+1];J++b[i];}}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}
      |              ^
main.c: In function 'main':
main.c:4:60: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I(i=l=strlen(gets(s));i--;){b[i]=b[i+1];J++b[i];}}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}
      |                                                            ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | #define I{long p=0,q=0,r=1;for
main.c:4:67: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I(i=l=strlen(gets(s));i--;){b[i]=b[i+1];J++b[i];}}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}
      |                                                                   ^~~~~~~
      |                                                                   |
      |                                                                   int
main.c:4:67: note: expected 'const char *' but argument is of type 'int'
main.c:4:127: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I(i=l=strlen(gets(s));i--;){b[i]=b[i+1];J++b[i];}}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}
      |                                                                                                                               ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #define I{long p=0,q=0,r=1

ソースコード

diff #
raw source code

#define I{long p=0,q=0,r=1;for
#define J if(p=p*m+s[i],q+=r*s[i],r*=m,p==q)
#define K I(j=i;++i<l;)J
char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I(i=l=strlen(gets(s));i--;){b[i]=b[i+1];J++b[i];}}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}
0