You are viewing a single comment's thread. Return to all comments →
Ok, I figured it out. When you try to use static values it results in the 325 1 6. Example of static values 3 & 2:
a=int(raw_input(3)) b=int(raw_input(2)) etc...
When I remove the static values then the process works:
a=int(raw_input()) b=int(raw_input()) etc...
I assume the input values (3, 2) are provided as part of the test case when executed.
what do you mean by remove static values, Im having the same issue
Its not because of static values .Its because the Python work on REPL i.e,
R - Read
E - Execute
P - Print
L - Loop
So here when a = raw_input(3) is given it Reads the command, Execute it i.e takes a as input 3, Prints it i.e why it prints 3 and then 2 for b = raw_input(2) and then Loop back again i.e it waits to read next instruction.
Hence your output is like
moreover Python considers your inputs as strings and they're concatenated when you don't convert them explicitly. That's why you get such errors.