fork(1) download
  1. for a in range(1, 1000) :
  2. for b in range(a+1, 1000) :
  3. for c in range(b+1, 1000) :
  4. if (a + b + c) == 1000 and (a**2 + b**2) == c**2 :
  5. print (a, b, c)
Time limit exceeded #stdin #stdout 5s 27712KB
stdin
Standard input is empty
stdout
Standard output is empty