結果

問題 No.1111 コード進行
ユーザー tailstails
提出日時 2020-07-10 21:55:48
言語 cLay
(20240104-1)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 2,511 ms
コンパイル使用メモリ 174,400 KB
実行使用メモリ 112,060 KB
最終ジャッジ日時 2023-09-19 00:46:19
合計ジャッジ時間 10,598 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
111,868 KB
testcase_01 AC 79 ms
111,916 KB
testcase_02 AC 78 ms
112,056 KB
testcase_03 AC 78 ms
112,036 KB
testcase_04 AC 78 ms
111,884 KB
testcase_05 AC 77 ms
111,872 KB
testcase_06 AC 78 ms
111,852 KB
testcase_07 AC 79 ms
111,872 KB
testcase_08 AC 79 ms
111,900 KB
testcase_09 AC 79 ms
111,920 KB
testcase_10 AC 78 ms
111,876 KB
testcase_11 AC 78 ms
111,864 KB
testcase_12 AC 78 ms
111,860 KB
testcase_13 AC 78 ms
111,868 KB
testcase_14 AC 77 ms
111,868 KB
testcase_15 AC 78 ms
111,936 KB
testcase_16 AC 78 ms
111,920 KB
testcase_17 AC 77 ms
111,916 KB
testcase_18 AC 78 ms
112,036 KB
testcase_19 AC 77 ms
111,992 KB
testcase_20 AC 77 ms
111,860 KB
testcase_21 AC 77 ms
112,060 KB
testcase_22 AC 78 ms
111,920 KB
testcase_23 AC 78 ms
111,984 KB
testcase_24 AC 77 ms
111,928 KB
testcase_25 AC 78 ms
111,976 KB
testcase_26 AC 77 ms
111,928 KB
testcase_27 AC 78 ms
111,860 KB
testcase_28 AC 77 ms
111,896 KB
testcase_29 AC 79 ms
111,864 KB
testcase_30 AC 78 ms
111,856 KB
testcase_31 AC 78 ms
111,864 KB
testcase_32 AC 81 ms
111,900 KB
testcase_33 AC 80 ms
111,852 KB
testcase_34 AC 78 ms
111,928 KB
testcase_35 AC 79 ms
112,004 KB
testcase_36 AC 88 ms
111,868 KB
testcase_37 AC 84 ms
111,860 KB
testcase_38 AC 80 ms
111,920 KB
testcase_39 AC 81 ms
111,872 KB
testcase_40 AC 85 ms
111,860 KB
testcase_41 AC 79 ms
111,864 KB
testcase_42 AC 86 ms
111,872 KB
testcase_43 AC 82 ms
111,876 KB
testcase_44 AC 79 ms
111,980 KB
testcase_45 AC 81 ms
111,916 KB
testcase_46 AC 78 ms
111,868 KB
testcase_47 AC 87 ms
111,860 KB
testcase_48 AC 81 ms
111,924 KB
testcase_49 AC 80 ms
111,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,m,k;
ll p[301],q[301],c[301];
Mint d[301][301][301],r;
{
	rd(n--,m,k,(p,q,c)(m));
	d[0][1..300][0]=1;
	rep(i,n){
		rep(j,m){
			rep(l,k-c[j]+1){
				d[i+1][q[j]][l+c[j]]+=d[i][p[j]][l];
			}
		}
	}
	r+=d[n][1..300][k];
	wt(r);
}
0