Run ID:74181
提交时间:2024-05-23 21:12:50
def find_nth_beautiful_number(N): count = 0 num = 1 while True: if num % 3 == 0 or num % 5 == 0: count += 1 if count == N: return num num += 1 while True: try: N = int(input()) print(find_nth_beautiful_number(N)) except EOFError: break