help with codeforces problem 369C

Правка en2, от Gilgamesh_017, 2016-06-26 04:01:15

hello codeforces

can any one please tell me how to solve this problem link ,I tried several methods and none of them worked , I also read the tutorial for this problem but it was not clear for me :(

thanks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Gilgamesh_017 2016-06-26 04:01:15 3
en1 Английский Gilgamesh_017 2016-06-26 04:00:28 290 Initial revision (published)