fork download
  1. def f(c,x):print(max([('%d^%d + %d^%d < %d^%d'%(a,x,b,x,c,x),a**x+b**x) for b in range(1,c+1) for a in range(b,c+1) if a**x+b**x<c**x],key=lambda x:x[1])[0])
  2.  
  3. [c,x] = map(int,raw_input().split())
  4. f(c,x)
Success #stdin #stdout 0.01s 9016KB
stdin
3 3
stdout
2^3 + 2^3 < 3^3