Buggy python submission (verdict: Runtime Error):
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))
r = defaultdict(int)
for g in c:
    r[g] += 1
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))
 
r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))
 
r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
c = []
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))
 
r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]

t1 = []
for i in range(n):
    t1.append(str(s[i][0])+" "+str(s[i][1]))


t3 = Counter(t1)
t2 = list(set(t1))
c = []
for i in range(len(t2)):
    for j in range(i+1,n):
        x = abs(int(t2[j][0]) - int(t2[i][0]))
        y = abs(int(t2[j][2]) - int(t2[i][2]))
        e = min(t3[t2[i]],t3[t2[j]])
        for l in range(e):
            c.append(str(x) + " " + str(y))


r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)


Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]

t1 = []
for i in range(n):
    t1.append(str(s[i][0])+" "+str(s[i][1]))


t3 = Counter(t1)
t2 = list(set(t1))
c = []
for i in range(len(t2)):
    for j in range(i+1,n):
        x = int(t2[j][0]) - int(t2[i][0])
        y = int(t2[j][2]) - int(t2[i][2])
        e = min(t3[t2[i]],t3[t2[j]])
        for i in range(e):
            c.append(str(x) + " " + str(y))

r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
c = []
t = defaultdict(int)
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))
for x in c:
    t[x] += 1

q = list(t.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
c = []
for i in range(n):
    for j in range(i+1,n):
        x = s[j][0] - s[i][0]
        y = s[j][1] - s[i][1]
        c.append(str(x) + " " + str(y))

r = Counter(c)
q = list(r.values())
q1 = max(q)
print(n-q1)

Fixed submission:
from collections import defaultdict
n = int(input())
s = [list(map(int,input().split())) for i in range(n)]
s.sort()
c = []
if n == 1:
    print(1)
else:
    for i in range(n):
        for j in range(i+1,n):
            x = s[j][0] - s[i][0]
            y = s[j][1] - s[i][1]
            c.append(str(x) + " " + str(y))
    r = defaultdict(int)
    for g in c:
        r[g] += 1
    q = list(r.values())
    q1 = max(q)
    print(n-q1)