An isosceles right triangle has a perimeter of 100+1002 inches. What is the length, in inches, of one leg of this triangle?
50
502
100
1002