#Lutece0933. The minimum square sum
The minimum square sum
Migrated from Lutece 933 The minimum square sum
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Given a prime ,you are to find min{},where and belongs to positive integer, so that (mod ).
Input
Every line is a . No more than test cases.
Output
The minimum square sum as described above.
Samples
Resources
2011 Heilongjiang collegiate programming contest