| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72849 | 胡海峰老师 | 美丽数 | Python3 | Runtime Error | 4250 MS | 3760 KB | 498 | 2024-05-13 08:30:23 |
def find_beautiful_number(n): if n == 1: return 3 count = 1 # 已经找到的第一个美丽数的计数 num = 3 # 从最小的美丽数3开始 while True: num += 1 if num % 3 == 0 or num % 5 == 0: count += 1 if count == n: return num while True: try: n = int(input()) print(find_beautiful_number(n)) except : break
Runtime Error:[ERROR] A not allowed system call. Call ID:511