Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

Problem hidden on 2014-11-11 01:49:22 by Francky

CCBOND - BOND

no tags 

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, Jimmy Bonds. Bond (James Bond) has grown weary of having to distribute assign missions to 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 for 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 will result in the greatest probability that all missions are completed successfully.

Note: the probability of all missions being completed successfully is equal to the product of the probabilities of the single missions being completed successfully. 

Input

The first line will contain an integer N, the number of Jimmy Bonds and missions (1 ≤ N ≤ 20). The following N lines will contain N integers between 0 and 100, inclusive. The j-th integer on the i-th line is the probability that Jimmy Bond i would successfully complete mission j, given as a percentage.

Output

Output the maximum probability of Jimmy Bonds successfully completing all the missions, as a percentage.

Note: Please output result with 6 digits after the decimal point.

Example

Input1:
2
100 100
50 50 Output1: 50.000000
Input1:
2
0 50
50 0 
100 100
50 50 Output1: 50.000000

hide comments
Francky: 2014-11-11 01:48:32

No answer from psetter -> Problem hidden.

Min_25: 2014-11-06 03:41:28

Perhaps, this problem is completely the same as CCBOND2 (or the hidden problem BOM).
So, I think it is no problem to hide this problem.

Last edit: 2014-11-06 04:17:32
Min_25: 2014-11-04 11:20:05

@T-7
Please check the "Testable".

--ans(Francky)--> Email send to psetter.
@Francky
Thank you.

Last edit: 2014-11-05 03:56:04

Added by:Hacker7
Date:2014-04-20
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:CROATIAN OPEN COMPETITION IN INFORMATICS 2006/2007 CONTEST 1