1.how do you jump out of the while-loop in main function?
2.The input data in your program which you suppose "a<=b" is not supposed to be according to the question
3.you compute lenght(a) twice.
Reply
University of Science and Technology of China Online Judge for ACM/ICPC Processed in 1.7ms with 2 query(s).