GLJIVE  GLJIVE
In front of Super Mario there are 10 mushrooms, arranged in a row. A certain amount of points is awarded for picking each of the mushrooms. Super Mario must pick mushrooms in order they appear, but is not required to pick them all – his goal is to score a number of points as close as possible to 100.
In case there exist two such numbers which are equally close to 100 (e.g. 98 and 102), Mario will pick the greater one (in this case 102).
Help Super Mario and tell him how many points he will score.
Input
Input consists of 10 lines, each of which contains one positive integer less than or equal to 100, denoting the scores awarded for picking each mushroom, in the order that Mario can pick them in.
Output
The first and only line of output must contain the required number of points.
Example
Input: 10 20 30 40 50 60 70 80 90 100 Output: 100
hide comments
Jumpy:
20190414 05:37:22
Unclear problem statement.


subhamiiit:
20190219 17:05:20
problem statement is not clear....


sandeep48:
20181222 11:39:14
a lot puzzled question,


jareehd:
20181106 21:31:46
my first downvote 

masterchef2209:
20181017 23:22:11
AC in 1 go :D 

ankur314:
20180711 16:04:27
I think the question is not correct.. if we use bitmask we should get correct answer. But some comments clarified that it needs greedy.. i took different cases and saw that bitmask gives more close answer to 100 than greedy but they accept wrong solution.. 

markomafko972:
20180422 21:17:51
Did bitmasks, now saw that I need to do greedy! Costed me 2 WA! 

ashimk:
20180317 11:51:56
Unclear explanation of the problem costed me 3 WA's ..... Deserves Downvote :p)


le9018468:
20180317 02:51:38
Last edit: 20180317 08:33:16 

rob_in_1:
20180305 19:21:51
10 20 30 50 60 70 75 80 90 100

Added by:  akaki 
Date:  20110213 
Time limit:  0.205s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 
Resource:  coci 