Diferente pentru problema/dristor2 intre reviziile #1 si #2

Diferente intre titluri:

dristor2
Lost in Dristor 2

Diferente intre continut:

== include(page="template/taskheader" task_id="dristor2") ==
Poveste şi cerinţă...
This is the legend of the old, long-lost package in Dristor 2.
 
A long time ago, AAP, MH, MFast and the other package hunters were tasked with finding a lost package in the Dristor 2 station. It is known that there are $N$ package hunters and $M$ secret locations in the Dristor 2 station. For each of the $N$ package hunters, the secret locations he knows how to reach are known. Since none of them know the station well enough, they decided to split up to increase their chances of finding the package.
 
In one search, every package hunter must check at most one secret location he knows how to reach and no two hunters should check the same secret location. In each search, the number of package hunters that are not checking any of the secret locations is minimized (i.e. the number of secret locations that are checked is maximized). You should count the number of different searches the group can try in order to find the lost package. Since this number can be very large, you should print it modulo 10^9 + 9. Two searches are considered different if at least one package hunter checks a different locations in the two searches.
h2. Date de intrare
Fişierul de intrare $dristor2.in$ ...
The first line of the input file $dristor2.in$ will contain $N$ and $M$. The next $N$ lines of the input will each contain $M$ binary values. If the jth value on the ith line is 1, then the ith package hunter knows how to reach the jth location. If the value is 0, then the ith package hunter does not know how to reach the jth location.
h2. Date de ieşire
În fişierul de iire $dristor2.out$ ...
You should output in file $dristor2.out$ the number of different searches the group can try (modulo 10^9 + 9).
h2. Restricţii
* $... ≤ ... ≤ ...$
* $1 ≤ N ≤ 14$
* $1 ≤ M ≤ 100$
* For tests worth 20 points, (1 &le N, M ≤ 6).
* For tests worth 10 more points, each of the N package hunters knows where all the secret locations are.
h2. Exemplu
table(example). |_. dristor2.in |_. dristor2.out |
| This is some
  text written on
  multiple lines.
| This is another
  text written on
  multiple lines.
| 4 4
0 1 1 0
1 1 0 1
1 0 0 0
0 1 1 1
| 9
|
h3. Explicaţie
 
...
== include(page="template/taskfooter" task_id="dristor2") ==

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.