태그 : CodingDojo 요약보기전체보기목록닫기
- Coding Dojo - Four Boxes by Ruby (Improved)(0)2008.09.18
- Coding Dojo - Amicable_Pair by Ruby(0)2008.09.11
1
- English Posting
- 2008/09/18 13:26
Four Boxes (I translated this quest from http://xper.org/wiki/seminar/FourBoxes)
Quest
There are four rectangles in plan and all their base of four rectangles are in parallel with the horizontal ...
- English Posting
- 2008/09/11 12:55
def sum_of_divisors(num)
divisors = [1]
(2..Math::sqrt(num)).each do |e|
if num % e == 0
divisors << e
&n...
1



최근 덧글