Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72860 Py自测 美丽数 Python3 Time Limit Exceeded 3000 MS 5748 KB 248 2024-05-13 14:06:35

Tests(0/1):


Code:

a = [0] id = 1 for i in range(1, 99999): if i % 3 == 0 or i % 5 == 0: a.append(i) id += 1 if id > 100001: break while True: try: N = int(input()) print(a[N]) except: break