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