THREENUMBERS - nth number
Given two numbers a and b, you have to find n-th number which is divisible by a or b.
First line contains an integer T (<= 100000), denoting number of test cases.
Second line contains 3 positive integers a, b and n. (a, b <= 10000, n <= 1000000000)
Print n-th number in a new line.
Input: 1 2 3 10
Input is wrong. I changed my program to version in which: if there is no new value in the input stream, i keep old value in variables a,b,n. Got AC.
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?