結果

問題 No.464 PPAP
ユーザー tailstails
提出日時 2016-12-17 01:49:46
言語 C90
(gcc 11.4.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 242 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 21,120 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-08 01:06:38
合計ジャッジ時間 5,125 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:9: warning: ISO C99 requires 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:4:14: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
main.c:4:29: warning: return type defaults to ‘int’ [-Wimplicit-int]
    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:29: warning: type of ‘m’ defaults to ‘int’ [-Wimplicit-int]
main.c:4:29: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:4:29: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int]
main.c:4:29: warning: type of ‘l’ defaults to ‘int’ [-Wimplicit-int]
main.c:4:46: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
    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:4:60: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
    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:60: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
    4 | char s[5010];b[5010];

ソースコード

diff #

#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