SHENZHEN I/O

SHENZHEN I/O

评价数不足
Tesla Challenge 12: Smart Refrigerator
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.043 KB
2017 年 4 月 8 日 上午 11:21
2017 年 5 月 2 日 上午 11:25
2 项改动说明 ( 查看 )

订阅以下载
Tesla Challenge 12: Smart Refrigerator

在 89o 的 1 个合集中
SHENZHEN I/O Tesla Challenge Pack
24 件物品
描述
Subject: Smart fridge
From: Carl Tesky <carl@longteng-co-ltd.gd.cn>

You know about the recent development of the 'Internet of Things'? I thought it would be a good idea to get Longteng involved into that as well. For instance, we could create a fridge that automatically adjusts its temperature depending on how much stuff there is in it.

Subject: Re: Smart fridge
From: Joe (周海涛) <joe@longteng-co-ltd.gd.cn>

Are you kidding me? A FRIDGE?!?

---------

Small hint: You do not need to divide to figure out the arithmetic mean.

Big hint: Given that the scales will never read 100, dividing by 10 is as simple as doing
dgt 1


Optimization tip: Use two MC4000's to handle the three scale inputs, because you will need at least three simple I/O pins.
4 条留言
89o  [作者] 2017 年 5 月 2 日 上午 11:27 
Also, if you're enjoying my Tesla Challenge Pack, then stay tuned for a TIS-100 Einstein Challenge Pack.
89o  [作者] 2017 年 5 月 2 日 上午 11:26 
Done, updated.
89o  [作者] 2017 年 5 月 2 日 上午 11:22 
Here's what I thought during the creation of the puzzle (and this is what my solution does):
For any input whose tens digit is higher than 5, add 1 to the temperature. For any input whose tens digit is lower than 5, subtract 1 from the temperature. Then add 3 if the door is open. If you do this for time unit 5, you end up with a temperature of 3 (+ 3 for the door) = 6.
And yes, you're right, this isn't mathematically equivalent to taking the tens digit of the average. I'll fix it soon.
As for the rapid input changing, the Lua implementation of the puzzle makes sure the shelf contents change ONLY when the door is open (which makes sense), hence the temperature changes.
criddle.rb 2017 年 5 月 2 日 上午 6:15 
Have enjoyed the puzzles in this set - thanks.

But on this one, I'm pretty sure that the verification tab doesn't match the description. For example, why is the output 6 for time unit 5? The shelf average is 58.7, so k = 0. And how can it drop to 1 (3 time units later) when the door is still open?

Unless I'm being daft, I don't think they match up...