{"id":143,"date":"2011-01-04T11:22:05","date_gmt":"2011-01-04T09:22:05","guid":{"rendered":"http:\/\/petyo.eu\/?p=143"},"modified":"2011-01-04T11:26:48","modified_gmt":"2011-01-04T09:26:48","slug":"%d1%82%d0%b5%d1%81%d1%82-%d0%bf%d0%be-%d0%b8%d0%bd%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%82%d0%b8%d0%ba%d0%b0-4-%d1%8f%d0%bd%d1%83%d0%b0%d1%80%d0%b8-2010%d0%b3","status":"publish","type":"post","link":"https:\/\/petyo.eu\/?p=143","title":{"rendered":"\u0422\u0435\u0441\u0442 \u043f\u043e \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430 &#8211; 4 \u044f\u043d\u0443\u0430\u0440\u0438 2010\u0433."},"content":{"rendered":"<h1>\u0418\u0437\u0440\u043e\u0431\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438\u0442\u0435 \u0443\u043c\u0435\u043d\u0438\u044f \u0442\u0443\u043a \u0438 \u0441\u0435\u0433\u0430<\/h1>\n<div>1. \u041a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u0446\u0438\u043a\u044a\u043b \u0438 \u043a\u043e\u0435 \u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043e \u0447\u0438\u0441\u043b\u043e:<\/p>\n<pre>For i:=3 downto 3 do\r\n    write(i)\r\n<\/pre>\n<\/div>\n<p><input id=\"option599\" name=\"answer_1\" type=\"radio\" value=\"599\" \/><label for=\"option599\">1 \u043f\u044a\u0442, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 2<\/label><\/p>\n<p><input id=\"option597\" name=\"answer_1\" type=\"radio\" value=\"597\" \/><label for=\"option597\">0 \u043f\u044a\u0442\u0438<\/label><\/p>\n<p><input id=\"option600\" name=\"answer_1\" type=\"radio\" value=\"600\" \/><label for=\"option600\">\u0446\u0438\u043a\u044a\u043b\u044a\u0442 \u0435 \u0433\u0440\u0435\u0448\u0435\u043d<\/label><\/p>\n<p><input id=\"option598\" name=\"answer_1\" type=\"radio\" value=\"598\" \/><label for=\"option598\">1 \u043f\u044a\u0442, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 3<\/label><\/p>\n<div>2. \u041a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u0446\u0438\u043a\u044a\u043b \u0438 \u043a\u043e\u0435 \u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043e \u0447\u0438\u0441\u043b\u043e:<\/p>\n<pre>for i:=1 to 5 do\r\n   for j:=i to i do\r\n        write(j);\r\n<\/pre>\n<\/div>\n<p><input id=\"option686\" name=\"answer_2\" type=\"radio\" value=\"686\" \/><label for=\"option686\">1 \u043f\u044a\u0442, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 5<\/label><\/p>\n<p><input id=\"option685\" name=\"answer_2\" type=\"radio\" value=\"685\" \/><label for=\"option685\">5 \u043f\u044a\u0442\u0438, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 5<\/label><\/p>\n<p><input id=\"option687\" name=\"answer_2\" type=\"radio\" value=\"687\" \/><label for=\"option687\">1 \u043f\u044a\u0442\u0438, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 1<\/label><\/p>\n<p><input id=\"option688\" name=\"answer_2\" type=\"radio\" value=\"688\" \/><label for=\"option688\">\u043d\u044f\u043c\u0430 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u043d\u0438\u0442\u043e \u0432\u0435\u0434\u043d\u044a\u0436<\/label><\/p>\n<div>3. \u041a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u043d\u0430\u0439-\u043c\u0430\u043b\u043a\u043e \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0442\u044f\u043b\u043e\u0442\u043e \u043d\u0430 \u0446\u0438\u043a\u044a\u043b \u0441 \u043f\u043e\u0441\u0442\u0443\u0441\u043b\u043e\u0432\u0438\u0435:<\/div>\n<p><input id=\"option563\" name=\"answer_3\" type=\"radio\" value=\"563\" \/><label for=\"option563\">\u0437\u0430\u0432\u0438\u0441\u0438 \u043e\u0442 \u0442\u043e\u0432\u0430 \u0434\u0430\u043b\u0438 \u0438\u043c\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430 \u043a\u0440\u0430\u0439<\/label><\/p>\n<p><input id=\"option562\" name=\"answer_3\" type=\"radio\" value=\"562\" \/><label for=\"option562\">\u043d\u0430\u0439-\u043c\u0430\u043b\u043a\u043e \u0435\u0434\u0438\u043d \u043f\u044a\u0442<\/label><\/p>\n<p><input id=\"option561\" name=\"answer_3\" type=\"radio\" value=\"561\" \/><label for=\"option561\">\u043c\u043e\u0436\u0435 \u0434\u0430 \u043d\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u043d\u0438\u0442\u043e \u0432\u0435\u0434\u043d\u044a\u0436<\/label><\/p>\n<p><input id=\"option564\" name=\"answer_3\" type=\"radio\" value=\"564\" \/><label for=\"option564\">\u0437\u0430\u0432\u0438\u0441\u0438 \u043e\u0442 \u0442\u044f\u043b\u043e\u0442\u043e \u043d\u0430 \u0446\u0438\u043a\u044a\u043b\u0430<\/label><\/p>\n<div>4. \u0410\u043a\u043e a=4, \u043a\u0430\u043a\u0432\u0430 \u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 b \u0441\u043b\u0435\u0434 \u0438\u0437\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430: if (a&gt;4) then b:=5  else   if (a&lt;4) then b:=-5            else if (a=8) then b:=6 else b:=-6;<\/div>\n<p><input id=\"option399\" name=\"answer_4\" type=\"radio\" value=\"399\" \/><label for=\"option399\">b=6<\/label><\/p>\n<p><input id=\"option400\" name=\"answer_4\" type=\"radio\" value=\"400\" \/><label for=\"option400\">b=-6<\/label><\/p>\n<p><input id=\"option398\" name=\"answer_4\" type=\"radio\" value=\"398\" \/><label for=\"option398\">b=-5<\/label><\/p>\n<p><input id=\"option397\" name=\"answer_4\" type=\"radio\" value=\"397\" \/><label for=\"option397\">b=5<\/label><\/p>\n<div>5. \u0414\u0430\u0434\u0435\u043d\u043e \u0435 \u0446\u044f\u043b\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u043d\u043e \u043f\u0435\u0442\u0446\u0438\u0444\u0440\u0435\u043d\u043e \u0447\u0438\u0441\u043b\u043e N. \u041a\u043e\u0439 \u043e\u0442 \u0441\u043b\u0435\u0434\u043d\u0438\u0442\u0435 \u0438\u0437\u0440\u0430\u0437\u0438 \u0432\u0440\u044a\u0449\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 \u0446\u0438\u0444\u0440\u0430\u0442\u0430 \u043d\u0430 \u0445\u0438\u043b\u044f\u0434\u043d\u0438\u0442\u0435 \u0432 \u0447\u0438\u0441\u043b\u043e\u0442\u043e:<\/div>\n<p><input id=\"option343\" name=\"answer_5\" type=\"radio\" value=\"343\" \/><label for=\"option343\">N mod 1000 div 10<\/label><\/p>\n<p><input id=\"option341\" name=\"answer_5\" type=\"radio\" value=\"341\" \/><label for=\"option341\">N mod 1000<\/label><\/p>\n<p><input id=\"option344\" name=\"answer_5\" type=\"radio\" value=\"344\" \/><label for=\"option344\">N mod 10000<\/label><\/p>\n<p><input id=\"option342\" name=\"answer_5\" type=\"radio\" value=\"342\" \/><label for=\"option342\">N div 1000 mod 10<\/label><\/p>\n<div>6. \u041a\u0430\u043a\u0432\u043e \u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u0434\u0430\u0434\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440:<\/p>\n<pre>var n : integer;\r\n. . . .\r\nif n mod 2 &lt;&gt; 0 then write(\u2018Yes\u2019)\r\n              else write(\u2018No)\r\n<\/pre>\n<\/div>\n<p><input id=\"option528\" name=\"answer_6\" type=\"radio\" value=\"528\" \/><label for=\"option528\">\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f \u0434\u0430\u043b\u0438 N \u0435 \u0447\u0435\u0442\u043d\u043e \u0447\u0438\u0441\u043b\u043e<\/label><\/p>\n<p><input id=\"option526\" name=\"answer_6\" type=\"radio\" value=\"526\" \/><label for=\"option526\">\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f \u0434\u0430\u043b\u0438 N \u0435 \u043d\u0435\u0447\u0435\u0442\u043d\u043e \u0447\u0438\u0441\u043b\u043e<\/label><\/p>\n<p><input id=\"option527\" name=\"answer_6\" type=\"radio\" value=\"527\" \/><label for=\"option527\">\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f \u0434\u0430\u043b\u0438 N \u0435 \u0435\u0434\u043d\u043e\u0446\u0438\u0444\u0440\u0435\u043d\u043e \u0447\u0438\u0441\u043b\u043e<\/label><\/p>\n<p><input id=\"option525\" name=\"answer_6\" type=\"radio\" value=\"525\" \/><label for=\"option525\">\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f \u0434\u0430\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0446\u0438\u0444\u0440\u0430 \u043d\u0430 N \u0435 \u043d\u0443\u043b\u0430<\/label><\/p>\n<div>7. \u041f\u0440\u0438 \u043a\u0430\u043a\u0432\u0438 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 x, y \u0438 z \u0438\u0437\u0440\u0430\u0437\u044a\u0442 \u0438\u043c\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u201e\u0438\u0441\u0442\u0438\u043d\u0430\u201d: not x and y and z or (x or not y and z)<\/div>\n<p><input id=\"option317\" name=\"answer_7\" type=\"radio\" value=\"317\" \/><label for=\"option317\">x=false, y=true,  z=false<\/label><\/p>\n<p><input id=\"option319\" name=\"answer_7\" type=\"radio\" value=\"319\" \/><label for=\"option319\">x =false,  y=false,   z=false<\/label><\/p>\n<p><input id=\"option320\" name=\"answer_7\" type=\"radio\" value=\"320\" \/><label for=\"option320\">x=true,  y=false,   z=true<\/label><\/p>\n<p><input id=\"option318\" name=\"answer_7\" type=\"radio\" value=\"318\" \/><label for=\"option318\">x=false,  y=false,   z=false<\/label><\/p>\n<div>8. \u041a\u0430\u043a\u0432\u0430 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u043b\u0438\u0432\u0430\u0442\u0430 N \u043f\u0440\u0438 \u0438\u0437\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0435\u043d \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442:<\/p>\n<pre>var M, N : integer;\r\n. . . .\r\nM := 0; N := 1;\r\nif M&gt;=0 then\r\n    if M=0 then N := -N else N := 0;\r\n<\/pre>\n<\/div>\n<p><input id=\"option471\" name=\"answer_8\" type=\"radio\" value=\"471\" \/><label for=\"option471\">\u043e\u0441\u0442\u0430\u0432\u0430 \u043d\u0435\u043f\u0440\u043e\u043c\u0435\u043d\u0435\u043d\u0430<\/label><\/p>\n<p><input id=\"option472\" name=\"answer_8\" type=\"radio\" value=\"472\" \/><label for=\"option472\">2<\/label><\/p>\n<p><input id=\"option469\" name=\"answer_8\" type=\"radio\" value=\"469\" \/><label for=\"option469\">0<\/label><\/p>\n<p><input id=\"option470\" name=\"answer_8\" type=\"radio\" value=\"470\" \/><label for=\"option470\">\u0441\u043c\u0435\u043d\u044f \u0437\u043d\u0430\u043a\u0430 \u0441\u0438 <\/label><\/p>\n<div>9. \u041f\u043e\u0441\u043e\u0447\u0435\u0442\u0435 \u043a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0442\u044f\u043b\u043e\u0442\u043e \u043d\u0430 \u0446\u0438\u043a\u044a\u043b\u0430 \u0438 \u043a\u0430\u043a\u0432\u0430 \u0449\u0435 \u0431\u044a\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u043b\u0438\u0432\u0430\u0442\u0430 \u041c:<\/p>\n<pre>i:=10;\r\nrepeat\r\n if i mod 3=0 then write(i);\r\n i:=i-2\r\nuntil i&lt;1;\r\n<\/pre>\n<\/div>\n<p><input id=\"option791\" name=\"answer_9\" type=\"radio\" value=\"791\" \/><label for=\"option791\">6 \u043f\u044a\u0442\u0438, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 6<\/label><\/p>\n<p><input id=\"option789\" name=\"answer_9\" type=\"radio\" value=\"789\" \/><label for=\"option789\">5 \u043f\u044a\u0442\u0438, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 6<\/label><\/p>\n<p><input id=\"option792\" name=\"answer_9\" type=\"radio\" value=\"792\" \/><label for=\"option792\">\u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0431\u0435\u0437\u0431\u0440\u043e\u0439 \u043f\u044a\u0442\u0438 <\/label><\/p>\n<p><input id=\"option790\" name=\"answer_9\" type=\"radio\" value=\"790\" \/><label for=\"option790\">\u043d\u044f\u043c\u0430 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438<\/label><\/p>\n<div>10. \u0410\u043a\u043e x=1, \u043a\u0430\u043a\u0432\u0430 \u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 y \u0441\u043b\u0435\u0434 \u0438\u0437\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430: If x&lt;-5 then y:=1 else if x&lt;0 then y:=2 else          if x&lt;5 then If x&gt;2 then y:=3 else y:=4;<\/div>\n<p><input id=\"option431\" name=\"answer_10\" type=\"radio\" value=\"431\" \/><label for=\"option431\">y=3<\/label><\/p>\n<p><input id=\"option432\" name=\"answer_10\" type=\"radio\" value=\"432\" \/><label for=\"option432\">y=4<\/label><\/p>\n<p><input id=\"option429\" name=\"answer_10\" type=\"radio\" value=\"429\" \/><label for=\"option429\">y=1<\/label><\/p>\n<p><input id=\"option430\" name=\"answer_10\" type=\"radio\" value=\"430\" \/><label for=\"option430\">y=2<\/label><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0437\u0440\u043e\u0431\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438\u0442\u0435 \u0443\u043c\u0435\u043d\u0438\u044f \u0442\u0443\u043a \u0438 \u0441\u0435\u0433\u0430 1. \u041a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u0446\u0438\u043a\u044a\u043b \u0438 \u043a\u043e\u0435 \u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043e \u0447\u0438\u0441\u043b\u043e: For i:=3 downto 3 do write(i) 1 \u043f\u044a\u0442, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 2 0 \u043f\u044a\u0442\u0438 \u0446\u0438\u043a\u044a\u043b\u044a\u0442 \u0435 \u0433\u0440\u0435\u0448\u0435\u043d 1 \u043f\u044a\u0442, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0435 3 2. \u041a\u043e\u043b\u043a\u043e \u043f\u044a\u0442\u0438 \u0449\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u0446\u0438\u043a\u044a\u043b \u0438 \u043a\u043e\u0435 \u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/posts\/143"}],"collection":[{"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/petyo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":3,"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/petyo.eu\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/petyo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/petyo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/petyo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}