Code n Counter 4.0 Problem

Правка en4, от adarsh000321, 2019-09-07 16:05:05

Hello Codeforces, I am stuck in one of the challenges , 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 ;

/predownloaded/f0/80/f0803882585c833c3a5cd679c2f2ffe9bc4c6251.png

Теги #combinatorics, #dp, #permutation

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский adarsh000321 2019-09-07 16:27:19 20
en6 Английский adarsh000321 2019-09-07 16:26:05 76
en5 Английский adarsh000321 2019-09-07 16:22:42 113
en4 Английский adarsh000321 2019-09-07 16:05:05 69 Tiny change: ' was 2 ;\n' -> ' was 2 ;\n\nhttps://codeforces.me/e3771f/Screenshot (44).png\n'
en3 Английский adarsh000321 2019-09-07 16:04:12 73 Reverted to en1
en2 Английский adarsh000321 2019-09-07 16:03:42 73
en1 Английский adarsh000321 2019-09-07 16:02:47 356 Initial revision (published)