How can I solve problem GPerm ?

Revision en1, by ps06756, 2016-08-13 17:26:01

Hello, I have been trying to solve the following problem which was a part of Topcoder SRM 696 Div1 Easy.

I am unable to find a editorial for the problem and I am not able to solve it. Can someone please tell me how to approach this problem ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ps06756 2016-08-13 17:26:01 347 Initial revision (published)