作业帮 > 英语 > 作业

英语翻译A single playing card can be placed on a table,carefully

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/17 06:42:37
英语翻译
A single playing card can be placed on a table,carefully,so that the short edges of the card are parallel to the table's edge,and half the length of the card hangs over the edge of the table.If the card hung any further out,with its center of gravity off the table,it would fall off the table and flutter to the floor.The same reasoning applies if the card were placed on another card,rather than on a table.
Two playing cards can be arranged,carefully,with short edges parallel to table edges,to extend 3/4 of a card length beyond the edge of the table.The top card hangs half a card length past the edge of the bottom card.The bottom card hangs with only 1/4 of its length past the table's edge.The center of gravity of the two cards combined lies just over the edge of the table.
Three playing cards can be arranged,with short edges parallel to table edges,and each card touching at most one other card,to extend 11/12 of a card length beyond the edge of the table.The top two cards extend 3/4 of a card length beyond the edge of the bottom card,and the bottom card extends only 1/6 over the table's edge; the center of gravity of the three cards lines over the edges of the table.
If you keep stacking cards so that the edges are aligned and every card has at most one card above it and one below it,how far out can 4 cards extend over the table's edge?Or 52 cards?Or 1000 cards?Or 99999?
Input
Input contains several nonnegative integers,one to a line.No integer exceeds 99999.
Output
The standard output will contain,on successful completion of the program,a heading:
Cards Overhang
(that's two spaces between the words) and,following,a line for each input integer giving the length of the longest overhang achievable with the given number of cards,measured in cardlengths,and rounded to the nearest thousandth.The length must be expressed with at least one digit before the decimal point and exactly three digits after it.The number of cards is right-justified in column 5,and the decimal points for the lengths lie in column 12.
单张纸牌可以仔细地放在桌上,可以使得牌的短边和桌子平行,而牌长边的一半悬在桌边缘外.如果纸牌垂再往外一点,重心离开了桌面,牌就会掉下桌子飘到地板上了.除了放在桌子上,同样的原因也会发生在两张牌叠放时的情况.两张纸牌仔细地放置,短边平行于桌边,牌长边的3/4 在桌的边缘之外.上面的纸牌盖住下面纸牌的一半.底下的纸牌只有长边的1/4超出桌子的边缘.两张纸牌组合在一起的重心正好处于桌子的边缘.
三张纸牌也可以放置成短边平行于桌边,每张牌接触至多一张其它牌,整个牌有单个牌长度的11/12 在桌的边缘之外.上面两张牌的3/4长边在下面牌的边缘之外,并且底下的牌只有1/6长边超出桌子的边缘;三张牌组合的重心正好在桌子的边缘.
如果您继续堆积纸牌,边对齐,并且每张牌有至多压住一张牌和被一张牌压,4 张牌能超出桌子边缘多少呢?52张牌呢?1000 张牌呢?99999张牌呢?
输入
输入几个不超出99999 的连续非负整数.
输出
如果程序运算成功的话,输出将包含最上面纸牌超出桌子边缘的长度.
:卡片突出物 (that's 二空间在词之间) 并且,随后而来,一条线为各个输入整数给最长的突出物的长度可达成以卡片的指定的数量,被测量在cardlengths,和被环绕最近第一千.长度必须被表达以至少一个数字在小数点之前和确切地三个数字在它以后.卡片的数量正确被辩解在专栏5,并且小数点为长度在在专栏12 .