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