From a54af2541081fc1fa6cc42199c3563c39b5bfc31 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 11 Apr 2011 00:28:42 +0300 Subject: small fix in b --- 2010/qual/b/b.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2010') diff --git a/2010/qual/b/b.py b/2010/qual/b/b.py index cb08a02..d08f928 100644 --- a/2010/qual/b/b.py +++ b/2010/qual/b/b.py @@ -6,7 +6,7 @@ c = int(f.readline().strip()) def gcd(a, b): return a if b==0 else gcd(b, a % b) -for i in range(c): +for i in xrange(c): t = map(int, f.readline().strip().split(' ')[1:]) l = [abs(x - t[0]) for x in t] g = reduce(gcd, l) -- cgit v1.3.1