Bond
의견: 0
Everyone knows of the secret agent double-oh-seven, the popular Bond (James Bond). A lesser known fact is that he actually did not perform most of his missions by himself; they were instead done by his cousins, the Jimmy Bonds. Bond (James Bond) has grown weary of having to assign missions to the Jimmy Bonds every time he gets new missions, so he has asked you to help him out.
Every month Bond (James Bond) receives a list of missions. Using his detailed intelligence from past missions, for every mission and every Jimmy Bond he calculates the probability of that particular mission being successfully completed by that particular Jimmy Bond. Your program should process that data and find the arrangement that results in the greatest probability that all missions are completed successfully. Each Jimmy Bond is assigned exactly one mission, and each mission to exactly one Jimmy Bond.
Note: The probability that all missions are completed successfully equals the product of the probabilities of the individual missions being completed successfully.
The first line contains an integer \(N\), the number of Jimmy Bonds and the number of missions (\(1 \le N \le 20\)).
The following \(N\) lines each contain \(N\) integers between \(0\) and \(100\), inclusive. The \(j\)-th integer on the \(i\)-th line is the probability (given as a percentage) that Jimmy Bond \(i\) would successfully complete mission \(j\).
Output the maximum probability of the Jimmy Bonds successfully completing all the missions, as a percentage.
Note: Outputs within \(±0.000001\) of the official solution will be accepted.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Subtask 1 | 70점 |
2
100 100
50 5050.0000002
0 50
50 025.000003
25 60 100
13 0 50
12 70 909.10000평가 및 의견
Bond
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Bond