﻿<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:betag="https://blogengine.io/schemas/tags" xmlns="http://www.w3.org/2005/Atom">
  <id>https://robootika.com/</id>
  <title>Reaali Robootika.COM - Informaatika olümpiaadi põhikooli eelvoor – Summa arvutamine</title>
  <updated>2011-12-27T12:29:18+00:00</updated>
  <link href="https://robootika.com/" />
  <link rel="self" href="https://robootika.com/syndication.axd?format=atom" />
  <subtitle>NXT robotimaailm ja programmeerimine C-keeles</subtitle>
  <author>
    <name>Leivo</name>
  </author>
  <generator uri="https://blogengine.io/" version="1.0.0.0">BlogEngine.Net Syndication Generator</generator>
  <blogChannel:blogRoll>https://robootika.com/opml.axd</blogChannel:blogRoll>
  <dc:creator>Leivo</dc:creator>
  <dc:description>NXT robotimaailm ja programmeerimine C-keeles</dc:description>
  <dc:language>en-US</dc:language>
  <dc:title>Reaali Robootika.COM</dc:title>
  <geo:lat>0.000000</geo:lat>
  <geo:long>0.000000</geo:long>
  <entry>
    <id>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6</id>
    <title>Simmo on &lt;a href="/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6" alt="/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6"&gt;Informaatika olümpiaadi põhikooli eelvoor – Summa arvutamine&lt;/a&gt;</title>
    <updated>2011-12-27T12:29:18+00:00</updated>
    <link rel="self" href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6" />
    <link href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6" />
    <author>
      <name>Simmo</name>
    </author>
    <summary type="html">Osalesin ise ka p&amp;#245;hikooli r&amp;#252;hmas. 
Antud lahendus on k&amp;#252;ll suhteliselt lihtne, kuid ei pruugi teenida maksimumpunkte. Nimelt &amp;#252;ks test sellel &amp;#252;lesandel oli &amp;quot;-1000000000 1000000000&amp;quot;, mis t&amp;#228;hendab seda, et programm j&amp;#228;&amp;#228;b arve liitma pikemaks ajaks kui 0,5 sekundit (eriti veel testserveris, mis pole v&amp;#228;ga kaasaegne).
Ise lahendasin maksimumpunktidele kasutades lihtsat valemit n*(n+1)/2, mis leiab arvude 1 kuni n summa. Selle valemi abil saab ka leida &amp;#252;lesandes vajalikku summat kui &amp;#245;igesti kasutada.</summary>
    <published>2011-12-27T12:29:18+00:00</published>
    <link rel="related" href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6#comment" />
    <dc:publisher>Simmo</dc:publisher>
    <pingback:server>https://robootika.com/pingback.axd</pingback:server>
    <pingback:target>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6</pingback:target>
    <wfw:comment>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6#comment</wfw:comment>
    <wfw:commentRss>https://robootika.com/syndication.axd?post=7dd91c3d-15a7-4f16-bb17-fdd9f996ecd6</wfw:commentRss>
  </entry>
  <entry>
    <id>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e</id>
    <title>Leivo on &lt;a href="/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e" alt="/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e"&gt;Informaatika olümpiaadi põhikooli eelvoor – Summa arvutamine&lt;/a&gt;</title>
    <updated>2011-12-27T13:32:00+00:00</updated>
    <link rel="self" href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e" />
    <link href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e" />
    <author>
      <name>Leivo</name>
    </author>
    <summary type="html">Nende suurte numbrite korral 0,5 sekundi sisse &amp;#228;ra ei mahu (algselt kirjeldatud variant), seep&amp;#228;rast ongi vaja kasutada kindlat algoritmi ja peale seda pole programmi kirjutamine enam probleem.</summary>
    <published>2011-12-27T13:32:00+00:00</published>
    <link rel="related" href="https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e#comment" />
    <dc:publisher>Leivo</dc:publisher>
    <pingback:server>https://robootika.com/pingback.axd</pingback:server>
    <pingback:target>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e</pingback:target>
    <wfw:comment>https://robootika.com/post/Informaatika-olumpiaadi-eelvoor-2011-pohikool-ulesanne-1#id_4fc444b4-65cd-4125-b037-9259f762bf6e#comment</wfw:comment>
    <wfw:commentRss>https://robootika.com/syndication.axd?post=4fc444b4-65cd-4125-b037-9259f762bf6e</wfw:commentRss>
  </entry>
</feed>