結果
問題 | No.498 ワープクリスタル (給料日編) |
ユーザー |
👑 ![]() |
提出日時 | 2017-06-15 01:27:30 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 248 ms / 2,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 30,464 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 23:31:19 |
合計ジャッジ時間 | 4,396 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(T=1;p-a[0]|q-a[1]|f?0:t?T=T%t?T+M:(T/t--*s--)%M:(t=i>>--j*4-4&15,j););}printf("%d",S%M);} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'M' [-Wimplicit-int] main.c:1:9: warning: data definition has no type or storage class 1 | M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(T=1;p-a[0]|q-a[1]|f?0:t?T=T%t?T+M:(T/t--*s--)%M:(t=i>>--j*4-4&15,j););}printf("%d",S%M);} | ^ main.c:1:9: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:15: warning: data definition has no type or storage class 1 | M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(T=1;p-a[0]|q-a[1]|f?0:t?T=T%t?T+M:(T/t--*s--)%M:(t=i>>--j*4-4&15,j););}printf("%d",S%M);} | ^ main.c:1:15: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] main.c:1:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 1 | M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(T=1;p-a[0]|q-a[1]|f?0:t?T=T%t?T+M:(T/t--*s--)%M:(t=i>>--j*4-4&15,j););}printf("%d",S%M);} | ^ main.c:1:19: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 1 | M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(
ソースコード
M=1e9+7;a[99];n,i,j,p,q,s,f;long T,S;main(t){for(;~scanf("%d",a+n++););for(;i++<1<<n/3*4;S+=T*!j){for(f=s=p=q=j=0;j<n/3;f|=t>a[3*j+2])s+=t=i>>j*4&15,p+=t*a[3*++j],q+=t*a[3*j+1];for(T=1;p-a[0]|q-a[1]|f?0:t?T=T%t?T+M:(T/t--*s--)%M:(t=i>>--j*4-4&15,j););}printf("%d",S%M);}