| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 9 | 5 | 5 | 62.500% |
The success of the UCF Programming Teams over 40+ years are attributed to the talented and dedicated students and to the experienced and great coaches. The coaches teach the various algorithms and team strategies, and the students deliver in various competitions.
A team in the International Collegiate Programming Contest consists of three students. One of the major team strategies is “who should do what problem”. Wouldn’t it be nice if the coaches had a program to answer this? And, wouldn’t it be even nicer if you wrote the program for the coaches?!
Given the following information:
determine the maximum number of problems that can be solved by the entire group in the given time. To simplify the problem, assume that:
The first input line contains three integers as follows:
The next n input lines provide who can solve what problems and how long it takes for each problem. Each of these n input lines contains p integers; row1 is the information for student1, row2 is for student2, and so on. The first integer on a row shows how long it takes that student to solve problem1, the second integer on a row shows how long it takes that student to solve problem2, and so on. Each of these integers are between 0 and 105, inclusive. A value of zero indicates that student can’t solve that problem (doesn’t know how to solve that problem).
Print the maximum number of problems that can be solved by the entire group in the given time.
2 4 5 2 5 3 4 0 4 5 0
1
2 4 5 1 5 1 1 2 1 0 1
2