a = int(input()) for i in range(1, a + 1): if a % i == 0: print(i)
註冊一個 菜鸟OJ 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 菜鸟OJ 通用賬戶