結果

問題 No.434 占い
ユーザー testestesttestestest
提出日時 2017-06-19 17:17:26
言語 C
(gcc 12.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 216 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 32,768 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 06:06:34
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
6,944 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
6,944 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 13 ms
6,940 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 60 ms
6,944 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:15: warning: data definition has no type or storage class
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
      |               ^
main.c:1:15: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:17: warning: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
      |                 ^
main.c:1:19: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
      |                   ^
main.c:1:21: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
      |                     ^
main.c:1:23: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
      |                       ^
main.c:1:25: warning: type defaults to 'int' in declaration of 'g' [-Wimplicit-int]
    1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%

ソースコード

diff #

char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
0