結果
問題 | No.434 占い |
ユーザー | 👑 testestest |
提出日時 | 2016-12-17 15:04:23 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 21,504 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-06 03:56:16 |
合計ジャッジ時間 | 2,030 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,812 KB |
testcase_01 | AC | 0 ms
6,940 KB |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | AC | 0 ms
6,944 KB |
testcase_04 | AC | 0 ms
6,944 KB |
testcase_05 | AC | 0 ms
6,940 KB |
testcase_06 | AC | 0 ms
6,940 KB |
testcase_07 | AC | 1 ms
6,940 KB |
testcase_08 | AC | 2 ms
6,944 KB |
testcase_09 | AC | 1 ms
6,940 KB |
testcase_10 | AC | 1 ms
6,944 KB |
testcase_11 | AC | 1 ms
6,940 KB |
testcase_12 | AC | 2 ms
6,944 KB |
testcase_13 | AC | 1 ms
6,940 KB |
testcase_14 | AC | 1 ms
6,944 KB |
testcase_15 | AC | 61 ms
6,944 KB |
testcase_16 | AC | 7 ms
6,944 KB |
testcase_17 | AC | 3 ms
6,940 KB |
testcase_18 | AC | 2 ms
6,944 KB |
testcase_19 | AC | 3 ms
6,944 KB |
testcase_20 | AC | 13 ms
6,944 KB |
testcase_21 | AC | 60 ms
6,940 KB |
testcase_22 | AC | 7 ms
6,944 KB |
testcase_23 | AC | 0 ms
6,944 KB |
testcase_24 | AC | 7 ms
6,944 KB |
testcase_25 | AC | 62 ms
6,944 KB |
testcase_26 | AC | 9 ms
6,940 KB |
testcase_27 | AC | 3 ms
6,944 KB |
testcase_28 | AC | 3 ms
6,940 KB |
testcase_29 | AC | 4 ms
6,940 KB |
testcase_30 | AC | 11 ms
6,940 KB |
コンパイルメッセージ
main.c:1:15: warning: data definition has no type or storage class 1 | char s[1<<17];i,t,a,p,x;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);} | ^ 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;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);} | ^ 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;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);} | ^ 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;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);} | ^ 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;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);} | ^ main.c:1:25: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char s[1<<17];i,t,a,p,x;f(n){return!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
ソースコード
char s[1<<17];i,t,a,p,x;f(n){return!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];c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(p-1?!p:3)*s[i],p+=f(strlen(++i+s)),c*=x,p-=f(i);}