Charm Bracelet
Time Limit: 1000MS | Memory Limit: 65536K | |
Total Submissions: 31755 | Accepted: 14120 |
Description
Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available charms. Each charm i in the supplied list has a weight Wi (1 ≤ W<