Problem p02927 (python)

Fixed submission:
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]
	
	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M:
				if int(str(d10)+str(d1)) <= int(D):
					count += 1
				else:
					break


	return count 

def main(argv):
	for i in range(1):
		data = raw_input()
		data = data.split(" ")
	print(process(data))

	

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M:
				if int(str(d10)+str(d1)) <= int(D):
					count += 1
				else:
					break


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	print(process(data))

	

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M:
				if int(str(d10)+str(d1)) <= int(D):
					count += 1
				else:
					break


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	print(process(data))

	

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M and int(str(d10)+str(d1)) <= int(D):
				count += 1


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	print(process(data))
	

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M and int(str(d10)+str(d1)) <= int(D):
				count += 1


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	print(process(data))
	

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M and int(str(d10)+str(d1)) <= int(D):
				count += 1


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	#print(process(data))
	return process(data)

if __name__ == '__main__':
    main(sys.argv[1:])

Buggy submission (verdict: Runtime Error):
import sys

def process(data):
	count = 0

	M = int(data[0])
	D = data[1]

	if len(D) < 2:
		return 0


	for d10 in range(2, int(D[0])+1):
		for d1 in range(2, 10):
			if 0 < d10 * d1 and d10 * d1 <= M and int(str(d10)+str(d1)) <= int(D):
				count += 1


	return count 

def main(argv):
	data = []
	for i, v in enumerate(argv):
		data.append(v)
	print(process(data))
	return process(data)

if __name__ == '__main__':
    main(sys.argv[1:])