TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

5
? 2 4 31
2 ? 1 7
4 5 ? 23
3 6 215 ?
? 2 5 7

Sample Output 1

29
999999999
12
514
no solution.

Hints

Problem Source

Migrated from old NTUJ.

+1 contest, peter50216

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 8000 65536 200