Puzzleup 2017 (12) Candle Burning Overlaps - 拼圖

Daph Bay avatar
By Daph Bay
at 2017-10-25T20:30

Table of Contents


題目網址: http://www.puzzleup.com/2017/
http://www.puzzleup.com/2017/puzzle/?12
答題時限: 10月26日7PM-比賽結束(約12月27日)
加分時限: 10月26日7PM-10月31日6:59PM

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

◆CANDLE BURNING OVERLAPS

Three candles are lighted in a room. How many different possible overlaps of
their burning times are there?

一個房間裡有三根蠟蠋點燃著。試問它們之間重疊的燃燒時間有幾種可能狀況?

If the question were asked for two candles, the answer would be 9.

1. The first candle starts, the second one starts, the first one stops, then
the second one stops.
2. The first candle starts, the second one starts, the second one stops, then
the first one stops.
3. The first candle starts, the second one starts, then they stop at the same
time.
4. Candles start at the same time, the first one stops, then the second one
stops.
5. Candles start at the same time, the second one stops, then the first one
stops.
6. Candles start at the same time, then they stop at the same time.
7. The second candle starts, the first one starts, the second one stops, then
the first one stops.
8. The second candle starts, the first one starts, the first one stops, then
the second one stops.
9. The second candle starts, the first one starts, they stop at the same time.

若問題改問兩根蠟蠋,則答案為 9:

1. 蠟蠋1點燃→蠟蠋2點燃→蠟蠋1熄滅→蠟蠋2熄滅
2. 蠟蠋1點燃→蠟蠋2點燃→蠟蠋2熄滅→蠟蠋1熄滅
3. 蠟蠋1點燃→蠟蠋2點燃→蠟蠋12同時熄滅
4. 蠟蠋12同時點燃→蠟蠋1熄滅→蠟蠋2熄滅
5. 蠟蠋12同時點燃→蠟蠋2熄滅→蠟蠋1熄滅
6. 蠟蠋12同時點燃→蠟蠋12同時熄滅
7. 蠟蠋2點燃→蠟蠋1點燃→蠟蠋2熄滅→蠟蠋1熄滅
8. 蠟蠋2點燃→蠟蠋1點燃→蠟蠋1熄滅→蠟蠋2熄滅
9. 蠟蠋2點燃→蠟蠋1點燃→蠟蠋12同時熄滅

Notes:
* For a situation to be considered as an overlap, the burning of each candle
must overlap the burning of at least one other candle.
* The duration between two non-overlapping burning periods is unimportant.
For example, the two cases below are considered the same. (The third candle
ignored for brevity)
1. The first candle starts burning, the second one starts as soon as the
first one stops, then the second one stops.
2. The first candle starts burning, it stops, the second one starts after a
while, then the second one stops.

註:
* 一個狀況要被考慮為有重疊,每根蠟蠋要至少和其他一根蠟蠋的燃燒時間重疊。
* 沒有重疊的燃燒階段之間的時間長短不重要。
例如以下兩種狀況視為相同:(暫時忽略第三根蠟蠋)
1. 蠟蠋1點燃→蠟蠋1熄滅時蠟蠋2立刻點燃→蠟蠋2熄滅
2. 蠟蠋1點燃→蠟蠋1熄滅→一會兒後蠟蠋2點燃→蠟蠋2熄滅

====
感覺這註解有點微妙...

--
將很小又單純的命令《Code》組合成函數《Function》。函數累積成更大更方便的元件《
Parts》,成為程式《App》。接著進行動態結合,相互通訊,打造出服務《Service》
李奧納多知道,要得到結果,就必須持續進行非常單純的作業。為了展現出匹敵巨大建築
的技術,現在非得將面前的碎片組合起來。
知道這條路多麼遙遠的人,叫做極客《Geek》
將這份尊貴具體呈現的人,叫做駭客《Hacker》。 --記錄的地平線 Vol.9 p.299

--
Tags: 拼圖

All Comments

David avatar
By David
at 2017-10-28T10:07
註解有改了 每根蠟燭都要和其它至少一支蠟燭重疊才有算
Lily avatar
By Lily
at 2017-10-30T16:03
置底

Puzzleup 2017 (11) Odd-Even

Rosalind avatar
By Rosalind
at 2017-10-19T02:25
題目網址: http://www.puzzleup.com/2017/ http://www.puzzleup.com/2017/puzzle/?11 答題時限: 10月19日7PM-比賽結束(約12月27日) 加分時限: 10月19日7PM-10月24日6:59PM 答對可得基本分10 ...

Puzzleup 2017 (10) Shirt Numbers

Zanna avatar
By Zanna
at 2017-10-11T21:09
題目網址: http://www.puzzleup.com/2017/ http://www.puzzleup.com/2017/puzzle/?10 答題時限: 10月12日7PM-比賽結束(約12月27日) 加分時限: 10月12日7PM-10月17日6:59PM 答對可得基本分10 ...

拼圖拼好惹~~~

Harry avatar
By Harry
at 2017-10-09T08:37
花了兩天拼完這幅, 好有成就感, 但是眼睛都花了^ ^” https://i.imgur.com/MGpfhrc.jpg 原圖 https://i.imgur.com/YZNWTxj.jpg 下一個是要開侏儸紀動物區, 加油!!! - ...

Puzzleup 2017 (9) Crossing Points

Faithe avatar
By Faithe
at 2017-10-05T04:02
題目網址: http://www.puzzleup.com/2017/ http://www.puzzleup.com/2017/puzzle/?9 答題時限: 10月5日7PM-比賽結束(約12月27日) 加分時限: 10月5日7PM-10月10日6:59PM 答對可得基本分100分。 ...

整形師與通緝犯

Lucy avatar
By Lucy
at 2017-10-04T11:49
有個重大通緝犯,帶著凶神惡煞氣勢,來到一間整形診所, 他 要求整形師立刻幫他整容。否則殺光整形師全家。 並強迫整形師不得全身麻醉以避免自己無法反抗。 整形師就替通緝犯整形了。整形完,通緝犯看一下鏡子, 的確跟原本長得完全不同了,就滿意地離開。 整形師與醫護人員都被控制,無法跟警察聯絡 (否則答案就太簡單 ...