Hello Codeforces,↵
I am stuck in one of the challenges (link: /predownloaded/32/13/3213a7385d761d920589aa1bd99691815f6dbc9b.png), all i can think of is dp, but i dont know how to implement that and i also think that the given sample test case( not in image) was wrong because possible arrangements for n=3 and p=1 are {1,2,3},{3,2,1},{3,1,2} that is, there are 3 arrangements but sample output was 2 ;↵
I am stuck in one of the challenges (link: /predownloaded/32/13/3213a7385d761d920589aa1bd99691815f6dbc9b.png), all i can think of is dp, but i dont know how to implement that and i also think that the given sample test case( not in image) was wrong because possible arrangements for n=3 and p=1 are {1,2,3},{3,2,1},{3,1,2} that is, there are 3 arrangements but sample output was 2 ;↵