結果
問題 | No.1304 あなたは基本が何か知っていますか?私は知っています. |
ユーザー | NyaanNyaan |
提出日時 | 2020-12-02 01:35:11 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 30,080 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 13:38:24 |
合計ジャッジ時間 | 6,058 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 4 ms
6,816 KB |
testcase_01 | AC | 8 ms
6,944 KB |
testcase_02 | AC | 5 ms
6,940 KB |
testcase_03 | AC | 61 ms
6,940 KB |
testcase_04 | AC | 5 ms
6,944 KB |
testcase_05 | AC | 5 ms
6,940 KB |
testcase_06 | AC | 5 ms
6,940 KB |
testcase_07 | AC | 5 ms
6,940 KB |
testcase_08 | AC | 12 ms
6,940 KB |
testcase_09 | AC | 5 ms
6,940 KB |
testcase_10 | AC | 5 ms
6,940 KB |
testcase_11 | AC | 5 ms
6,940 KB |
testcase_12 | AC | 6 ms
6,944 KB |
testcase_13 | AC | 5 ms
6,944 KB |
testcase_14 | AC | 5 ms
6,940 KB |
testcase_15 | AC | 5 ms
6,940 KB |
testcase_16 | AC | 5 ms
6,940 KB |
testcase_17 | AC | 9 ms
6,940 KB |
testcase_18 | AC | 5 ms
6,940 KB |
testcase_19 | AC | 5 ms
6,940 KB |
testcase_20 | AC | 5 ms
6,940 KB |
testcase_21 | AC | 9 ms
6,944 KB |
testcase_22 | AC | 5 ms
6,940 KB |
testcase_23 | AC | 6 ms
6,944 KB |
testcase_24 | AC | 5 ms
6,940 KB |
testcase_25 | AC | 24 ms
6,944 KB |
testcase_26 | AC | 13 ms
6,944 KB |
testcase_27 | AC | 13 ms
6,940 KB |
testcase_28 | AC | 17 ms
6,940 KB |
testcase_29 | AC | 13 ms
6,940 KB |
testcase_30 | AC | 21 ms
6,944 KB |
testcase_31 | AC | 32 ms
6,944 KB |
testcase_32 | AC | 13 ms
6,944 KB |
testcase_33 | AC | 25 ms
6,940 KB |
testcase_34 | AC | 13 ms
6,940 KB |
testcase_35 | AC | 21 ms
6,944 KB |
testcase_36 | AC | 29 ms
6,940 KB |
testcase_37 | AC | 21 ms
6,940 KB |
testcase_38 | AC | 21 ms
6,940 KB |
testcase_39 | AC | 37 ms
6,940 KB |
testcase_40 | AC | 21 ms
6,940 KB |
testcase_41 | AC | 36 ms
6,944 KB |
testcase_42 | AC | 21 ms
6,940 KB |
testcase_43 | AC | 21 ms
6,944 KB |
testcase_44 | AC | 28 ms
6,940 KB |
04_evil_A_01 | RE | - |
04_evil_A_02 | RE | - |
04_evil_A_03 | RE | - |
04_evil_A_04 | RE | - |
04_evil_A_05 | RE | - |
04_evil_A_06 | RE | - |
04_evil_A_07 | RE | - |
04_evil_A_08 | RE | - |
04_evil_A_09 | RE | - |
04_evil_A_10 | RE | - |
05_evil_B_01 | RE | - |
05_evil_B_02 | RE | - |
05_evil_B_03 | RE | - |
05_evil_B_04 | RE | - |
05_evil_B_05 | RE | - |
05_evil_B_06 | RE | - |
05_evil_B_07 | RE | - |
05_evil_B_08 | RE | - |
05_evil_B_09 | RE | - |
05_evil_B_10 | RE | - |
06_evil_C_01 | RE | - |
06_evil_C_02 | RE | - |
06_evil_C_03 | RE | - |
06_evil_C_04 | RE | - |
06_evil_C_05 | RE | - |
06_evil_C_06 | RE | - |
06_evil_C_07 | RE | - |
06_evil_C_08 | RE | - |
06_evil_C_09 | RE | - |
06_evil_C_10 | AC | 3 ms
6,944 KB |
コンパイルメッセージ
main.c:1:44: warning: return type defaults to 'int' [-Wimplicit-int] 1 | long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&X,&Y);~scanf("%d",&i);a[i]=*p=1);for(i=M;i--;)K+=a[i];for(;++i<N;p+=M)for(j=M;j--;p[M+M+j]-=p[j]*(K-!!i))for(k=M;k;p[M+j^--k]+=p[j]*a[k]);for(;X-M--;k+=M<=Y?p[M]:0);printf("%d\n",k%998244353);} | ^~~~ main.c: In function 'main': main.c:1:55: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&X,&Y);~scanf("%d",&i);a[i]=*p=1);for(i=M;i--;)K+=a[i];for(;++i<N;p+=M)for(j=M;j--;p[M+M+j]-=p[j]*(K-!!i))for(k=M;k;p[M+j^--k]+=p[j]*a[k]);for(;X-M--;k+=M<=Y?p[M]:0);printf("%d\n",k%998244353);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&X,&Y);~scanf("%d",&i);a[i]=*p=1);for(i=M;i--;)K+=a[i];for(;++i<N;p+=M)for(j=M;j--;p[M+M+j]-=p[j]*(K-!!i))for(k=M;k;p[M+j^--k]+=p[j]*a[k]);for(;X-M--;k+=M<=Y?p[M]:0);printf("%d\n",k%998244353);} main.c:1:55: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&X,&Y);~scanf("%d",&i);a[i]=*p=1);for(i=M;i--;)K+=a[i];for(;++i<N;p+=M)for(j=M;j--;p[M+M+j]-=p[j]*(K-!!i))for(k=M;k;p[M+j^--k]+=p[j]*a[k]);for(;X-M--;k+=M<=Y?p[M]:0);printf("%d\n",k%998244353);} | ^~~~~ main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:247: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&
ソースコード
long d[1<<16],*p,*a=d,N,K,X,Y,i,j,k,M=1024;main(){for(scanf("%d%d%d%d",&N,p=a+M,&X,&Y);~scanf("%d",&i);a[i]=*p=1);for(i=M;i--;)K+=a[i];for(;++i<N;p+=M)for(j=M;j--;p[M+M+j]-=p[j]*(K-!!i))for(k=M;k;p[M+j^--k]+=p[j]*a[k]);for(;X-M--;k+=M<=Y?p[M]:0);printf("%d\n",k%998244353);}