backup de julho
[h2N7SspZmY.git] / data / cache / e / e90d7da97d7c60bd581ec465bfa1d1c6.code
blobb4ddfd519938c7922ea85f98b7edcd8bd2e5984f
1 sum = <span class="nu0">0.0</span>; 10.<span class="me1">times</span><span class="br0">&#123;</span> <span class="sy0">|</span>i<span class="sy0">|</span> sum <span class="sy0">+</span>= <span class="kw4">IO</span>.<span class="me1">read</span><span class="br0">&#40;</span><span class="st0">&quot;#{i+1}.out&quot;</span><span class="br0">&#41;</span>.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\n</span>&quot;</span><span class="br0">&#41;</span><span class="br0">&#91;</span>5<span class="br0">&#93;</span>.<span class="kw3">split</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span>.<span class="me1">to_i</span> <span class="br0">&#125;</span>; <span class="kw3">print</span> sum <span class="sy0">/</span> 10
2 10.<span class="me1">times</span><span class="br0">&#123;</span> <span class="sy0">|</span>i<span class="sy0">|</span> <span class="kw3">print</span> <span class="kw4">IO</span>.<span class="me1">read</span><span class="br0">&#40;</span><span class="st0">&quot;#{i+1}.out&quot;</span><span class="br0">&#41;</span>.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\n</span>&quot;</span><span class="br0">&#41;</span><span class="br0">&#91;</span>5<span class="br0">&#93;</span>.<span class="kw3">split</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">+</span> <span class="st0">&quot;<span class="es0">\n</span>&quot;</span> <span class="br0">&#125;</span>