英語翻譯
英語翻譯
How far can you make a stack of cards overhang a table?If you have one card,you can create a maximum overhang of half a card length.(We're assuming that the cards must be perpendicular to the table.) With two cards you can make the top card overhang the bottom one by half a card length,and the bottom one overhang the table by a third of a card length,for a total maximum overhang of 1/2 + 1/3 = 5/6 card lengths.In general you can make n cards overhang by 1/2 + 1/3 + 1/4 + ...+ 1/(n + 1) card lengths,where the top card overhangs the second by 1/2,the second overhangs tha third by 1/3,the third overhangs the fourth by 1/4,etc.,and the bottom card overhangs the table by 1/(n + 1).This is illustrated in the figure below.
The input consists of one or more test cases,followed by a line containing the number 0.00 that signals the end of the input.Each test case is a single line containing a positive floating-point number c whose value is at least 0.01 and at most 5.20; c will contain exactly three digits.
For each test case,output the minimum number of cards necessary to achieve an overhang of at least c card lengths.Use the exact output format shown in the examples.
Sample Input:
1.00
3.71
0.04
5.19
0.00
Sample Output:
3 card(s)
61 card(s)
1 card(s)
273 card(s)
How far can you make a stack of cards overhang a table?If you have one card,you can create a maximum overhang of half a card length.(We're assuming that the cards must be perpendicular to the table.) With two cards you can make the top card overhang the bottom one by half a card length,and the bottom one overhang the table by a third of a card length,for a total maximum overhang of 1/2 + 1/3 = 5/6 card lengths.In general you can make n cards overhang by 1/2 + 1/3 + 1/4 + ...+ 1/(n + 1) card lengths,where the top card overhangs the second by 1/2,the second overhangs tha third by 1/3,the third overhangs the fourth by 1/4,etc.,and the bottom card overhangs the table by 1/(n + 1).This is illustrated in the figure below.
The input consists of one or more test cases,followed by a line containing the number 0.00 that signals the end of the input.Each test case is a single line containing a positive floating-point number c whose value is at least 0.01 and at most 5.20; c will contain exactly three digits.
For each test case,output the minimum number of cards necessary to achieve an overhang of at least c card lengths.Use the exact output format shown in the examples.
Sample Input:
1.00
3.71
0.04
5.19
0.00
Sample Output:
3 card(s)
61 card(s)
1 card(s)
273 card(s)
英語人氣:527 ℃時間:2020-05-20 12:09:51
優(yōu)質(zhì)解答
你能走多遠堆卡片懸垂桌子?如果你有一個卡,你可以創(chuàng)建一個最大懸垂半卡的長度.(我們這里假設(shè)這些開關(guān)卡必須垂直于表.)與兩張卡片上,你能做的不止是一個底部懸垂半卡的長度,以及一個懸垂桌子邊的底部有三分之一的一張卡片,總長度的最大寬度1 / 2 + 2 / 1 / 3 = 1卡長度.一般來說,你可以使護士卡懸垂1 / 2 + 1 / 3 + 1 / 4 +…+ 1 /(n + 1)卡長度
我來回答
類似推薦
- 英語翻譯
- 英語翻譯
- 英語翻譯
- 誰能幫我翻譯一下下面這個編碼啊?我不知道這是什么編碼 麻煩翻譯成漢字好嗎?謝謝~
- 請幫我分句翻譯一下下面一段VBA代碼的意思.
- 有一個長方形鐵皮,長32厘米,寬16厘米,在這塊鐵皮的四角上各剪去一個邊長是4厘米的小正方形,然后通過折疊
- 已知向量OA⊥向量OB,且|OA|=|OB|=1,設(shè)OC=2OA+OB,OD=OA+4OB,OE=3OA+3OB
- 核舟記中有一句議論,找出來,說說其作用.
- 瞬間加熱器的加熱速度這么快?跟什么有關(guān)?請物理專家回答
- 一個含有字母的二次函數(shù)在某一區(qū)間內(nèi)有最值,求字母的值一般采用什么做法
- 5千克糖平均分給11個小朋友,每個小朋友分到多少千克?小麗3小時可以折80只千紙鶴,她平均每小時折多少只千紙鶴?折一只千紙鶴平均要多少小時?某校六(1)班有學生48人,人人參加興趣小組,其中參加迎世博英語口語小組的有31人,參加文學欣賞小組
- i am a girl ,有人信嗎?
猜你喜歡
- 1兩導體的材料、長度相等,橫截面積之比為1:2,則其電阻之比為多少?為什么?
- 2科學家研究表明,10000平方米大森林在生長季節(jié)每周可吸收六點三噸二氧化碳.城北到森林公園有五萬平方米森林,今年八月份片森林一共吸收了多少二氧化碳?
- 3write a travel diary like jane on page 5use your notes in
- 4下列人類活動與季節(jié)選擇相宜的是:A 長江截流——夏季B 黃河調(diào)水沖沙——冬季C 珠江口補淡壓咸——冬季D 海河緊急泄洪——春季答案:C麻煩解釋一下每一個選項的錯誤處和C為什么正確,
- 5Whatever happened 和 what happened 有什么區(qū)別?
- 68月是夏天還是秋天
- 7甲每分鐘走80米,乙每分鐘走70米,丙每分鐘走60厘米,甲從A地,乙丙兩人從B地同時與甲相向,甲遇到乙3分鐘
- 8連詞成句 for ,buy ,to ,Halloween ,Nancy ,like ,masks ,would ,some (.)
- 9三角形ABC的三邊長度之比為3:5:7,與其相似的三角形A'B'C'的最大邊長為12,那么三角形A'B'C'的周長是
- 10某化學課外小組探究乙醇與鈉的反應
- 11a short tall 英語翻譯結(jié)果
- 12仿句:幸福是"臨行密密縫,意恐遲遲歸"的牽掛;幸福是'春種一粒樹,秋收萬顆子"的收獲