captcha's recent timeline updates
captcha

captcha

V2EX member #361419, joined on 2018-11-07 12:19:17 +08:00
captcha's recent replies
Feb 26, 2019
Replied to a topic by captcha 问与答 求助一道算法题
@chairuosen
没有逗你,表达式应该是 Math.floor(Math.floor( n * 1.01) * 1.01) 和 Math.floor(n * 1.02)
Feb 26, 2019
Replied to a topic by captcha 问与答 求助一道算法题
算了一下 S 超过 10000 的话,好像每次使用 1 点是提升最快的。5000 以下则不确定,例如 4950、167 等很多。

4950 * 1.01 = 4999.5 ----> 4999
4999 * 1.01 = 5048.99 ---> 5048

4950 * 1.02 = 5049,一次用 2 点结果更大

感觉低位只能比较暴力地遍历,不知道有没有好的方法。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5862 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 02:49 · PVG 10:49 · LAX 19:49 · JFK 22:49
♥ Do have faith in what you're doing.