結果

問題 No.801 エレベーター
ユーザー kotatsugamekotatsugame
提出日時 2019-03-18 01:32:33
言語 cLay
(20240104-1)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 2,819 ms
コンパイル使用メモリ 176,448 KB
実行使用メモリ 66,608 KB
最終ジャッジ日時 2023-09-19 00:22:58
合計ジャッジ時間 7,378 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
66,476 KB
testcase_01 AC 40 ms
66,368 KB
testcase_02 AC 40 ms
66,364 KB
testcase_03 AC 42 ms
66,372 KB
testcase_04 AC 41 ms
66,324 KB
testcase_05 AC 40 ms
66,352 KB
testcase_06 AC 40 ms
66,356 KB
testcase_07 AC 41 ms
66,476 KB
testcase_08 AC 41 ms
66,328 KB
testcase_09 AC 41 ms
66,352 KB
testcase_10 AC 41 ms
66,460 KB
testcase_11 AC 40 ms
66,608 KB
testcase_12 AC 41 ms
66,348 KB
testcase_13 AC 156 ms
66,408 KB
testcase_14 AC 158 ms
66,600 KB
testcase_15 AC 157 ms
66,436 KB
testcase_16 AC 157 ms
66,416 KB
testcase_17 AC 158 ms
66,432 KB
testcase_18 AC 158 ms
66,436 KB
testcase_19 AC 159 ms
66,384 KB
testcase_20 AC 158 ms
66,416 KB
testcase_21 AC 159 ms
66,544 KB
testcase_22 AC 157 ms
66,416 KB
testcase_23 AC 171 ms
66,424 KB
testcase_24 AC 170 ms
66,464 KB
testcase_25 AC 171 ms
66,404 KB
testcase_26 AC 170 ms
66,428 KB
testcase_27 AC 171 ms
66,468 KB
testcase_28 AC 123 ms
66,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mint D[4d3][4d3],W;
ll L[3d4],R[3d4],n,m,k;
{
	rd(n,m,k,(L,R)(m));
	D[0][1]=1;
	rep(i,k){
		rep(j,n)D[i][j+1]+=D[i][j];
		rep(j,m){
			D[i+1][L[j]]+=W=D[i][R[j]]-D[i][L[j]-1];
			D[i+1][R[j]+1]-=W;
		}
		rep(j,n)D[i+1][j+1]+=D[i+1][j];
	}
	wt(D[k][n]);
}
0