The Lovers
-
-
PRASHANTB1984 10 years ago Hint: X00X0X0X0X
(assuming X represent a visited house)
-
smaddula 10 years ago There are other cases like X00X0X0X0X
-
Murgatroyd 10 years ago X0X0X0X00X X0X0X00X0X X0X00X0X0X X00X0X0X0X
-
Why does the test case 10 5 correspond to output 6? By my understanding, then there are 10 houses and 5 lovers to visit.
X0X0X0X0X0 0X0X0X0X0X
Shouldn't there only be two possibilities, given the order that he visits the houses doesn't matter?
Add Reply Preview cancel