import strutils import sequtils import algorithm import math import queues import tables import sets import future const INF* = high(int) div 4 proc readLine*(): string = stdin.readLine() proc readSeq*(): seq[string] = readLine().strip().split() proc readSeq*(n: Natural): seq[string] = result = newSeq[string](n) for i in 0.. 0: count2[x^2-y^2+d-1]+=1 var r = 0 #echo count1 #echo count2 for i in 0..