How can I solve problem GPerm ?

Правка en1, от 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 ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ps06756 2016-08-13 17:26:01 347 Initial revision (published)