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

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 8
    print(f"{a} {b} {int(c)}")
                            ^
SyntaxError: invalid syntax