結果

問題 No.612 Move on grid
ユーザー %20%20
提出日時 2017-12-13 03:12:28
言語 cLay
(20231016-1)
結果
AC  
実行時間 104 ms / 2,500 ms
コード長 208 bytes
コンパイル時間 2,387 ms
コンパイル使用メモリ 175,160 KB
実行使用メモリ 44,564 KB
最終ジャッジ日時 2023-09-18 23:48:04
合計ジャッジ時間 4,863 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
44,364 KB
testcase_01 AC 30 ms
44,348 KB
testcase_02 AC 31 ms
44,292 KB
testcase_03 AC 42 ms
44,288 KB
testcase_04 AC 101 ms
44,416 KB
testcase_05 AC 90 ms
44,284 KB
testcase_06 AC 87 ms
44,432 KB
testcase_07 AC 104 ms
44,364 KB
testcase_08 AC 87 ms
44,492 KB
testcase_09 AC 82 ms
44,344 KB
testcase_10 AC 66 ms
44,300 KB
testcase_11 AC 46 ms
44,296 KB
testcase_12 AC 69 ms
44,292 KB
testcase_13 AC 52 ms
44,288 KB
testcase_14 AC 76 ms
44,288 KB
testcase_15 AC 46 ms
44,564 KB
testcase_16 AC 81 ms
44,300 KB
testcase_17 AC 52 ms
44,284 KB
testcase_18 AC 75 ms
44,348 KB
testcase_19 AC 65 ms
44,492 KB
testcase_20 AC 86 ms
44,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll T,a[6],d,e;
mint D[501][20041],z;
{
	rd(T,a(3),d,e);
	a[3..5]=-a[0..];
	D[0][10020]=1;
	rep(i,T){
		rep(j,20,20021){
			rep(k,6){
				D[i+1][j+a[k]]+=D[i][j];
			}
		}
	}
	z+=D[T][10020+(d..e)];
	wt(z);
}
0