UVa 11723 - Numbering Roads
It's a simple mathematical problem. Your Task is to find out the minimum number of possibility to numbering all the roads with the given number of roads & numbers.
The solution of this problem is the answer of this: (number of road - 1)/number of numbers.
Remember one thing. If your answer is more then 26, it's impossible to process.
Take road number & number of numbers as long long integer.
Case 1: 1
Case 2: impossible