给定两个整数 n 和 k,要求构造一个长度为 n 的数组 [a1,a2,…,an],满足:
要求统计满足条件的数组方案数,并对 109+7 取模。
小红希望你构造一个长度为n的数组,满足:
1.数组中的每个元素a满足0≤ai<2k
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.