結果

問題 No.1973 Divisor Sequence
ユーザー tailstails
提出日時 2022-06-10 21:56:32
言語 cLay
(20231016-1)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 10,946 ms
コンパイル使用メモリ 226,100 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2023-10-21 06:20:00
合計ジャッジ時間 11,510 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
9,904 KB
testcase_01 AC 9 ms
9,904 KB
testcase_02 AC 9 ms
9,904 KB
testcase_03 AC 9 ms
9,904 KB
testcase_04 AC 9 ms
9,904 KB
testcase_05 AC 9 ms
9,904 KB
testcase_06 AC 9 ms
9,904 KB
testcase_07 AC 9 ms
9,904 KB
testcase_08 AC 9 ms
9,904 KB
testcase_09 AC 9 ms
9,904 KB
testcase_10 AC 9 ms
9,904 KB
testcase_11 AC 9 ms
9,904 KB
testcase_12 AC 9 ms
9,904 KB
testcase_13 AC 9 ms
9,904 KB
testcase_14 AC 10 ms
9,908 KB
testcase_15 AC 9 ms
9,904 KB
testcase_16 AC 9 ms
9,904 KB
testcase_17 AC 9 ms
9,904 KB
testcase_18 AC 10 ms
9,908 KB
testcase_19 AC 9 ms
9,904 KB
testcase_20 AC 9 ms
9,904 KB
testcase_21 AC 9 ms
9,904 KB
testcase_22 AC 9 ms
9,904 KB
testcase_23 AC 13 ms
9,920 KB
testcase_24 AC 9 ms
9,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int f[100],g[100];
ll@n,@m;
ll h=Factor(m,f,g);
Mint z=1;
rep[g](i,h){
	Matrix<Mint> a(i+1,i+1);
	rep(y,i+1){
		rep(x,i+1){
			a[y][x]=y+x<=i?1:0;
		}
	}
	a**=n-1;
	Mint w=0;
	rep(y,i+1){
		rep(x,i+1){
			w+=a[y][x];
		}
	}
	z*=w;
}
wt(z);
0