Doubt regarding this problem : http://codeforces.net/problemset/problem/194/A

Правка en1, от traynmslf, 2016-08-21 09:53:11

Hi Everyone,

I'm a newbie here.I just started solving Div 2 A problems. I solved the following problem using a brute force approach. http://codeforces.net/problemset/problem/194/A

I was looking at the editorial here — http://codeforces.net/blog/entry/4673 I don't understand the logic behind "3n-k" being used.

Can anyone please help?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский traynmslf 2016-08-21 09:53:11 431 Initial revision (published)