Puzzleup 2019 (03) COUNTERFEIT GOLD - 拼圖

Elizabeth avatar
By Elizabeth
at 2019-08-08T09:23

Table of Contents

題目網址: http://www.puzzleup.com/2019/
http://www.puzzleup.com/2019/puzzle/?03
答題時限: 08月08日7PM-比賽結束
加分時限: 08月08日7PM-08月14日6:59PM

答對可得基本分100分。答案可上傳次,每改1次答案從基本分扣20分。 
比賽期間內可隨時上傳答案,加分時限內答對第n天加(6-n)分       
另依題目的難易有額外加分(如有80%的人這題答錯,答對者加80分)  

◆COUNTERFEIT GOLD

You are given 100 gold coins and told that one of them is counterfeit.
In order to detect the counterfeit one, you decide to get support of an
expert goldsmith. You will group the coins as you wish and ask whether
the counterfeit coin is in that group or not. For every "yes" answer you
will pay 3 $, and for every "no" answer you will pay 2 $.

What is the minimum amount you have to pay to guarantee that you find the
counterfeit coin?

你得到100枚金幣,並被告知其中有一枚是假幣。為了找出假幣,你決定委託一位專
業金匠。你可以將任意數量的金幣分成一組,拿去問金匠該組金幣中是否混有假幣。
每次回答「有」你就得付3元,每次回答「沒有」你就要付2元。

問你最少得準備多少錢,才能保證可找出假幣?

--
Tags: 拼圖

All Comments

Dora avatar
By Dora
at 2019-08-08T16:49
裝死三個禮拜還是沒人要翻譯Orz...
是說到現在這三題沒一題是程式題
Cara avatar
By Cara
at 2019-08-12T06:19
這題我有用程式跑耶 感覺需要遞迴 手算要怎麼算呀?
Necoo avatar
By Necoo
at 2019-08-12T19:13
2枚的話最少要準備3元,3~4枚要準備6元
小於等於2^n枚數的要準備3n枚不是嗎?
Poppy avatar
By Poppy
at 2019-08-13T04:24
3枚只要5元喔 挑一個鑑定 若為no 則2元+剩下兩枚3元=5元
Emma avatar
By Emma
at 2019-08-14T09:23
!!感謝提醒,立刻去寫程式
Kumar avatar
By Kumar
at 2019-08-16T11:24
Dynamic Programming

Puzzleup 2019 (01) SIX ENVELOPES

Skylar Davis avatar
By Skylar Davis
at 2019-08-08T09:19
題目網址: http://www.puzzleup.com/2019/ http://www.puzzleup.com/2019/puzzle/?01 答題時限: 07月25日7PM-比賽結束 加分時限: 07月25日7PM-07月31日6:59PM 答對可得基本分100分。答案可上傳5 ...

太愛拼圖 父親節活動~

Belly avatar
By Belly
at 2019-08-04T13:57
大家午安 位於高雄左營的太愛拼圖目前有父親節活動唷! https://i.imgur.com/ZIm0a4Z.jpg 全館適用 以現貨為主 歐美拼圖單幅定價85折優惠(第二件為定價9折再88折) 日本拼圖單幅定價8折優惠(第二件為定價85折再88折) 詳情請至太愛拼圖臉書粉專或是站內連絡 粉專分 ...

遺跡裡的 nonogram (6)

Suhail Hany avatar
By Suhail Hany
at 2019-07-31T13:06
λ λ υτ λλνννλλνννλλ τυωωτω λλ□□□□□□□□□□□□ υωττυυτυ λννλ□□□□□□□□□□□□ ττ□□□□□□□□ μμ□□□□□□□□□ ...

請問台中哪裡能玩拼圖嗎?

Christine avatar
By Christine
at 2019-07-29T12:33
有類似台北葛蕾蒂咖啡館的地方,能夠玩拼圖的店或者咖啡館嗎? - ...

puzzleup 2019 開跑

Belly avatar
By Belly
at 2019-07-27T15:54
剛剛才發現 puzzleup 2019 已經開始了 http://www.puzzleup.com/2019/ 有興趣的版友們一起來參與吧 ps. 太晚看到 bonus 只剩 4 分了 - ...