Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
73299 | 屠佳毅 | 勾股数 | Python3 | Accepted | 35 MS | 3768 KB | 392 | 2024-05-18 16:21:20 |
results = [] for a in range(1, 101): for b in range(a, 101): c = (a**2 + b**2)**0.5 if int(c) == c and c <= 100: result = (a, b, int(c)) if result not in results and (b, a, int(c)) not in results: results.append(result) for result in sorted(results): print(' '.join(str(num) for num in result)) print(len(results))