9
277
309
576&quot;&quot;&quot;</span>
<span class="hljs-keyword">echo</span> input.len
<span class="hljs-keyword">echo</span> example.len</code></pre>
<pre><samp>1000
20</samp></pre>
<p>and I can pack the solution in a single proc:</p>
<pre><code class="nim hljs"><span class="hljs-keyword">proc</span> solve(s: <span class="hljs-built_in">seq</span>[<span class="hljs-built_in">int</span>]; l: <span class="hljs-built_in">int</span>): (<span class="hljs-built_in">int</span>, <span class="hljs-built_in">int</s