TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Speedsums

16 点作者 refrigerator超过 2 年前

3 条评论

Raed667超过 2 年前
Looks fun! I made a small JavasScript snippet to solve it by pressing &quot;Enter&quot; at whatever speed you want ;)<p><pre><code> const observer = new MutationObserver(() =&gt; { document.querySelector(&quot;#answer&quot;).value = eval(document.querySelector(&quot;#question&quot;).innerText.replace(&quot;=&quot;,&quot;&quot;).replace (&#x27;x&#x27;,&quot;*&quot;).replace(&quot;÷&quot;,&quot;&#x2F;&quot;)); }); observer.observe(document.querySelector(&quot;#question&quot;), { attributes: true, childList: true, subtree: true }); </code></pre> &gt; You beat 100% of people.<p>&gt; Time per question: 0.25s<p>¯\_(ツ)_&#x2F;¯
ColinWright超过 2 年前
Hmm.<p><pre><code> Total: 21 You beat 70.22% of people. Time per question: 1.43s Your slowest question was 20 ÷ 2 = 10, which took you 2.24s. Try to be faster next time!</code></pre>
tmtvl超过 2 年前
Hang on, those aren&#x27;t only sums. Got 22 correct, which I guess may be fine for a tired Tuesday evening.