简答题
偏难
#17081
黄金格
黄金格


答案与解析
正确答案:<pre class="brush:python;toolbar:false">H = int(input()) #矩形高度,编号1-H
W = int(input()) #矩形宽度,编号1-W
x = int(input()) #特别常数
ans = 0
#遍历每一个格子,求出(r^2 + c^2)的平方根,与x + r - c进行比较
for r in range(1, H + 1):
for c in range(1, W + 1):
if ((r * r + c * c) ** 0.5) <= x + r - c:
ans += 1
print(ans)</pre>
这道题暂未补解析。