結果

問題 No.368 LCM of K-products
ユーザー testestesttestestest
提出日時 2016-05-29 20:13:09
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 22,144 KB
実行使用メモリ 9,840 KB
最終ジャッジ日時 2024-04-16 18:17:18
合計ジャッジ時間 4,027 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 201 ms
7,680 KB
testcase_02 AC 198 ms
7,936 KB
testcase_03 AC 194 ms
7,680 KB
testcase_04 AC 196 ms
7,680 KB
testcase_05 WA -
testcase_06 AC 5 ms
7,680 KB
testcase_07 AC 6 ms
7,680 KB
testcase_08 AC 7 ms
7,808 KB
testcase_09 AC 6 ms
7,680 KB
testcase_10 AC 6 ms
7,680 KB
testcase_11 AC 6 ms
7,680 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 7 ms
7,680 KB
testcase_24 AC 6 ms
7,680 KB
testcase_25 AC 7 ms
7,680 KB
testcase_26 AC 7 ms
7,680 KB
testcase_27 AC 7 ms
7,680 KB
testcase_28 AC 6 ms
7,680 KB
testcase_29 AC 8 ms
7,680 KB
testcase_30 AC 8 ms
7,680 KB
testcase_31 AC 8 ms
7,680 KB
testcase_32 AC 7 ms
7,680 KB
testcase_33 WA -
testcase_34 AC 194 ms
7,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&n);~scanf("%d",&i);i>1?d[z][1]=1,d[z++][0]=i:0)for(k=2;i%k<1?i/=k,++t:(d[k][t]++,t=0,++k<4e4););for(;--z;s=s*p(t<4e4?z:d[z][0],k)%m)for(k=t=0,i=30;t<n&&d[z][i]--?t++,k+=i:--i;);i=!printf("%d",s);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int]
main.c:1:14: warning: data definition has no type or storage class
    1 | d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&n);~scanf("%d",&i);i>1?d[z][1]=1,d[z++][0]=i:0)for(k=2;i%k<1?i/=k,++t:(d[k][t]++,t=0,++k<4e4););for(;--z;s=s*p(t<4e4?z:d[z][0],k)%m)for(k=t=0,i=30;t<n&&d[z][i]--?t++,k+=i:--i;);i=!printf("%d",s);}
      |              ^
main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
main.c:1:16: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
    1 | d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&n);~scanf("%d",&i);i>1?d[z][1]=1,d[z++][0]=i:0)for(k=2;i%k<1?i/=k,++t:(d[k][t]++,t=0,++k<4e4););for(;--z;s=s*p(t<4e4?z:d[z][0],k)%m)for(k=t=0,i=30;t<n&&d[z][i]--?t++,k+=i:--i;);i=!printf("%d",s);}
      |                ^
main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int]
    1 | d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&n);~scanf("%d",&i);i>1?d[z][1]=1,d[z++][0]=i:0)for(k=2;i%k<1?i/=k,++t:(d[k][t]++,t=0,++k<4e4););for(;--z;s=s*p(t<4e4?z:d[z][0],k)%m)for(k=t=0,i=30;t<n&&d[z][i]--?t++,k+=i:--i;);i=!printf("%d",s);}
      |                  ^
main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
    1 | d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&

ソースコード

diff #

d[99999][40];n,i,k,t,m=1e9+7,z=4e4;long p(a,n){return n?a*p(a,n-1)%m:1;}main(s){for(scanf("%*d%d",&n);~scanf("%d",&i);i>1?d[z][1]=1,d[z++][0]=i:0)for(k=2;i%k<1?i/=k,++t:(d[k][t]++,t=0,++k<4e4););for(;--z;s=s*p(t<4e4?z:d[z][0],k)%m)for(k=t=0,i=30;t<n&&d[z][i]--?t++,k+=i:--i;);i=!printf("%d",s);}
0