JavaScript (V8), 96 bytes
a=>{for(i=a>>2;++i<a*4;)/[09]/.test(i)|[...a].map((n,j)=>s+=((i+'')[j]-n)**2,s=0)^s^5||print(i)}
Input is a string, for example, [6, 5, 2]
is inputed as "652"
. Output each answer per line to stdout.
Python 2, 101104 bytes
lambda a:[i for i in range(a/4,a*4)if sum((q in'90')*6+(int(p)-int(q))**2for p,q in zip(`a`,`i``i*10`))==5]
Input as a single integer. [6, 5, 2]
as an integer 652
. Output list of integers.