Hi guys

I'm encountering this strange issue with python 3.4 NSTEPS.
Here's my submission list:
spoj.com/status/NSTEPS,tuxoko/3

As you can see, when I choose "Python 3.4 (Python 3.4)", shown as LANG "PY 3.4", every submission will resulted in TLE with huge memory use.
But if I choose "Python 3 nbc" or "Python 3 (Python 3.4)", shown as LANG "PYTH 3.4", the result are all AC.
The code are essentially identical, as you can see in 14929246, 14928986, and 14928982, they are all the below code:

t = int(input())
while t > 0:
	x, y = map(int,input().split())
	if x == y:
		if x % 2 == 0:
			print(2*x)
		else:
			print(2*x-1)
	elif x - y == 2:
		if x % 2 == 0:
			print(x + y)
		else:
			print(x + y - 1)
	else:
		print("No Number")
	t -= 1

I've already solved a few problem with "Python 3.4 (Python 3.4)", but this is the first time I encounter something like this.
I wonder why this kind of thing would happen?

  • created

    Aug '15
  • last reply

    Aug '15
  • 1

    reply

  • 773

    views

  • 1

    user

  • 1

    link

Ok, I resubmitted other problems which I got AC with "Python 3.4 (Python 3.4)".
And now I got either TLE or WA with huge memory usage.
So this is not specific to NSTEPS, but rather, this is a regression bug with the option "Python 3.4 (Python 3.4)"