結果
問題 | No.434 占い |
ユーザー | testestest |
提出日時 | 2017-06-19 17:17:26 |
言語 | C (gcc 12.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 30,540 KB |
実行使用メモリ | 4,508 KB |
最終ジャッジ日時 | 2023-07-25 13:40:06 |
合計ジャッジ時間 | 2,654 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 0 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 2 ms
4,376 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
4,376 KB |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 65 ms
4,380 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
コンパイルメッセージ
main.c:1:15: 警告: データ定義が型または記憶域クラスを持っていません 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: 警告: 型がデフォルトの ‘int’ に ‘i’ の宣言内でなります [-Wimplicit-int] main.c:1:17: 警告: 型がデフォルトの ‘int’ に ‘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: 警告: 型がデフォルトの ‘int’ に ‘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: 警告: 型がデフォルトの ‘int’ に ‘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: 警告: 型がデフォルトの ‘int’ に ‘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: 警告: 型がデフォルトの ‘int’ に ‘g’ の宣��
ソースコード
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;}