166
Legends of Babylon and Egypt(古巴比.pdf
HEBREWTRADITION1LEGENDS OFBABYLON HEBREWTRADITI ONBy Leonar W.King, M.A., Litt.D., F.S.A..LEGENDS HE
85
Egypt.ppt
EgyptEgypt Geography Geography Basedalong NileRiver deltaBased along NileRiver MediterraneanSea. Med
147
英语读物 古埃及Ancient Egypt.pdf
ANCIENTEGYPT GEORGERAWLINSON, M.A. CAMDEN PROFESSOR ANCIENTHISTORY CORRESPONDINGMEMBER ROYALACADEMY
11
Investing in EGYPT.doc
First:Recalamation cultivationland, Animal fishproduction: 1- Reclamation desertlands them.2- Animal
6
egypt埃及分数问题.docx
egypt埃及分数问题
问题描述:
所谓埃及分数,是指分子为1 的分数。任何一个分数都可以表示为埃及分数之和的形式。
如2/3=1/2+1/6,但不允许2/3=1/3+1/3,因为加数中有相同的。然而,一个分数的表示方式
是不唯一的,加数少的比加数多的好,加数个数相同的,最小的分数越大越好。如果最小的
相同,则比较次小的,依次类推。

如:分数19/45可以表示为

19/45=1/3+1/12+1/180
19/45=1/3+1/15+1/45
19/45=1/3+1/18+1/30
19/45=1/4+1/6+1/180
19/45=1/5+1/6+1/18

最好的是最后一种,因为1/18 比1/180,1/45,1/30,1/180 都大。

编程任务:
对于给定的真分数,设计一个算法,找到用最好埃及分数表示真分数的表达式。

数据输入:
由文件input.txt 给出输入数据。文件中仅一行,包括两个整数a 和b,它们之间用空格
分开,分别表示分数的分子和分母。

结果输出:
用最好的埃及分数表示法来表示分数中的分母,从小到大依次输出到文件output.txt。

输入文件示例 输出文件示例
input.txt output.txt
19 45 5 6 18
13
The Etiquette of Egypt.ppt
ArabRepublic Egypt国名:阿拉伯埃及共和国(The Arab Republic Egypt)独立日:2月28日(1922年) 国庆日: 7月23日(1952年)国旗:呈长方形,长与宽之
119
Textile Sector Report, Egypt.pdf
.SEAMProject Textile Sector Report, EgyptCleaner Production OpportunitiesMinistry EnvironmentalAffai
77
COUNTRY ANALYSIS REPORT - Egypt.pdf
CountryAnalysis Report: Egypt Published 1/2012 licensedproduct photocopiedPage OVERVIEWCatalyst prof
20
gods and goddesses of Egypt.doc
ancientEgypt ancientEgyptians believed manydifferent gods goddesses.Each one ownrole maintainingpeac
11
daily life in ancient egypt.doc
daily life in ancient egypt

向豆丁求助:有没有Egypt?