Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73020 张智博 勾股数 Python3 Compile Error 0 MS 0 KB 215 2024-05-15 21:01:02

Tests(0/0):


Code:

count = 0 for a in range(1, 100): for b in range(a, 100): c = (a**2 + b**2) ** 0.5 if c.is_integer() and c < 100: count += 1 print(f"{a} {b} {int(c)}") print(count)


Run Info:

  File "Main.py", line 7
    print(f"{a} {b} {int(c)}")
                            ^
SyntaxError: invalid syntax