結果
問題 | No.997 Jumping Kangaroo |
ユーザー | iiljj |
提出日時 | 2020-07-25 17:19:32 |
言語 | cLay (20240104-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 3,448 ms |
コンパイル使用メモリ | 180,780 KB |
実行使用メモリ | 4,564 KB |
最終ジャッジ日時 | 2023-09-19 00:50:00 |
合計ジャッジ時間 | 5,589 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
4,376 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 1 ms
4,380 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 1 ms
4,376 KB |
testcase_27 | AC | 1 ms
4,384 KB |
ソースコード
{ll n,w,k,a[100];Mint d[400];rd(n,w,k,a(n));d[0]=1;rep(i,0,2*w)rep(j,0,n)d[i+a[j]]+=d[i];Matrix<Mint>m(2,2),l(2,1);m[0][0]=l[0][0]=d[w],m[0][1]=d[2*w]-d[w]**2,m[1][0]=1;wt((m**k*l)[1][0]);}