THREENUMBERS - nth number
Given two numbers a, b you have to find nth number which is divisible by a or b
first line contains an integer t , denoting number of test cases .
second line contains 3 positive integers a,b,n
print nth number in a new line.
2 3 10
t <= 100000
a,b <= 10000
n <= 1000000000
Test cases are correct! but this problem is copied directly :| ,plz make something by atleast some modifications :)
My guess is that the actual number of tests is smaller than given t. If my reader does not blow up in such case, I have WA (as I'm printing nothing or some rubbish), otherwise i have NZEC. It may be the case that my program is faulty (hence WA), however I think, that there may be something wrong with the input (as change in handling cases which should not happen, change status of my submission).
I'm getting runtime error. (both in Python and in FPC)
Agree with @devilwolverine. The test cases are either wrong or not satisfying the input constraints.
are the test cases correct?