a090: All factor 所有的因數
標籤 :
通過比率 : 100% (3 人 / 3 人 ) (非即時)
評分方式 :
Tolerant

最近更新 : 2021-04-12 11:17

內容

Please write a program which can read in a positive integer and print out all its factor.

請寫一隻程式來讀入一個正整數,而輸出正整數的所有正因數。

輸入說明

The input is a positive integer.

輸入為一個正整數

輸出說明

Print out all factors in increasing order.

輸出正整數的所有正因數,且由小到大的排列。

範例輸入
24
範例輸出
1 2 3 4 6 8 12 24
測資資訊 :
記憶體限制 : 64 MB
隱藏 測資點#0 (50%): 1.0s , <1K
隱藏 測資點#1 (50%): 1.0s , <1K
提示 :
標籤:
出處:
http://oj.csie.ndhu.edu.tw/problem/PR1090501 [編輯 :
zero_jason (zero_jason(MANAGER))
]


編號 身分 題目 主題 人氣 發表日期
沒有發現任何「解題報告」