In the 100*100 grid table, any n grids are dyed red, there are 3 red grids, and their centers form the vertices of a right triangle. What is the minimum value of n.
在100*100的方格表中任意取n个方格染为红色，都存在3个红色方格，它们的中心构成一个直角三角形的顶点．n的最小值是多少．
<result>199</result>