SHENZHEN I/O

SHENZHEN I/O

评价数不足
Tesla Challenge 21: Love Calculator
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.472 KB
2017 年 4 月 8 日 上午 11:25
1 项改动说明 ( 查看 )

订阅以下载
Tesla Challenge 21: Love Calculator

在 89o 的 1 个合集中
SHENZHEN I/O Tesla Challenge Pack
24 件物品
描述
Subject: Three Kingdoms love scale
From: David 戴维 P. Solomon <daiwei@longteng-co-ltd.gd.cn>

Hey there! Remember our work for the Shenzhen 三国游乐园 (Three Kingdoms Land)? Now they want us to create another little machine for them. A love scale, the kind you see around amusement parks. For those of you who are not familiar, basically you type two names and the scale tells you how much they are in love. With all due respect, it's a bunch of crap, but a good algorithm and it will look very credible. I came up with a simple algorithm, now someone needs to implement it.

---------

Small hint: If you still don't know, you can route wires under components. Use TAB to do this. It will be very useful in this spec and the ones to come.

Big hint: Keep track of the lengths of the two names independently. Then compare them with a single
teq x0 x1 + add 10
(assuming x0 and x1 are connected to the microcontrollers that keep track of the lengths)


Optimization tip: Watch out for premature optimization!
2 条留言
Garrett33 2024 年 10 月 3 日 上午 9:46 
much harder than it looks at first . . .
Cocoa 2023 年 5 月 22 日 下午 6:23 
Back wires is not necessary even in this puzzle. And, you just need to care about the difference between len(str0) and len(str1), i.e. the value of len(str0) - len(str1) , but NOT THE CERTAIN VALUES OF len(str0) AND len(str1) .

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2979481698