Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 8:00 (UTC) due to technical maintenance. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

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

Revision en1, by 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?

Tags 895a

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English daiict218 2017-11-27 16:46:06 458 Initial revision (published)