| acmsguru |
|---|
| Finished |
). We also define popul(i) as the population of city i, and
.
In a similar manner the second country can conquer the set C at once iff
.1' if cities i and j are connected by a road, and '
0' otherwise. The next line contains n integers popul(i) (
) — the populations of all cities. sample input | sample output |
5 1 2 00111 00001 10010 10101 11010 12 100 5 5 7 | -85 |
sample input | sample output |
3 1 3 010 101 010 5 5 11 | -11 |
sample input | sample output |
7 1 5 0100011 1010001 0101001 0010100 0001000 1000001 1110010 90 20 20 10 200 85 80 | 85 |
| Name |
|---|


