mobil balance problem

Revision en3, by bluespace, 2019-07-07 01:37:26

When multiple objects of weight are given,
Obtain the maximum number of objects that can be balanced

ex)
input : [2,4,4,6]
output : 3 ( [2,4,6] ), (not [4,4] = 2)
.....|
..-----
..|.....|
----..6
|....|
2..4

the number of objects : 1~100,000
the weight of an object : 1~100,000

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English bluespace 2019-07-07 01:37:26 71 Tiny change: '.6 \n|...| \n2.' -> '.6 \n|....| \n2.'
en2 English bluespace 2019-07-07 01:32:12 12
en1 English bluespace 2019-07-07 01:31:21 301 Initial revision (published)