DP。。。。好难的DP。。。
Bigger is Better
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 749 Accepted Submission(s): 190
Problem Description
Bob has n matches. He wants to compose numbers using the following scheme (that is, digit 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 needs 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 matches):Write a program to make a non-negative integer which is a multiple of m. The integer should be as big as possible.
Input
The......
阅读全文