Giving wrong answer for problem http://codeforces.com/contest/895/problem/A

Правка en1, от daiict218, 2017-11-27 16:46:06

Hi,

In the above problem, I tried using the method of diving an array in two subsets with minimum difference but it gave me wrong answer for the test case

5
110 90 70 50 40

For me, the answer should be that one person would take pizza with sector angles 90,40 and 50 and other person will take sectors 110 and 70. Did I understand the problem incorrectly?

Теги 895a

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский daiict218 2017-11-27 16:46:06 458 Initial revision (published)