TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
5
-1 7 7 7 7
7 -1 7 7 7
7 7 -1 7 7
7 7 7 -1 7
7 7 7 7 -1
3
-1 10 15
-1 -1 20
-1 -1 -1
6
-1 12 -1 8 -1 -1
-1 -1 9 -1 -1 -1
7 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 10
-1 -1 -1 10 -1 -1
-1 -1 -1 -1 10 -1

Sample Output 1

7/1
Impossible
28/3

Hints

Problem Source

Migrated from old NTUJ.

NTU NCPC 2014

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 131072