{"id":4638,"date":"2018-12-27T20:58:58","date_gmt":"2018-12-27T17:58:58","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=4638"},"modified":"2018-12-27T23:20:06","modified_gmt":"2018-12-27T20:20:06","slug":"e-olymp-266-%d1%81%d1%80%d0%b0%d0%b2%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=4638","title":{"rendered":"e-olymp 266. \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435"},"content":{"rendered":"<h1>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 <strong>A<\/strong> \u0438 <strong>B<\/strong>.<\/p>\n<h4>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>\u0412\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 <strong>A<\/strong> \u0438 <strong>B<\/strong> $(A, B &lt;= 10^{10000})$ \u043a\u0430\u0436\u0434\u043e\u0435 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435.<\/p>\n<h4>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>\u0412 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 <strong>&lt;<\/strong>, \u0435\u0441\u043b\u0438 <strong>A<\/strong> &lt; <strong>B<\/strong>, <strong> = <\/strong>, \u0435\u0441\u043b\u0438 <strong>A<\/strong> = <strong>B<\/strong> \u0438 <strong>&gt;<\/strong>, \u0435\u0441\u043b\u0438 <strong>A<\/strong> &gt; <strong>B<\/strong>.<\/p>\n<h4>\u0422\u0435\u0441\u0442\u044b<\/h4>\n<table>\n<tbody>\n<tr>\n<th>#<\/th>\n<th>\u0412\u0425\u041e\u0414\u041d\u042b\u0415 \u0414\u0410\u041d\u041d\u042b\u0415<\/th>\n<th>\u0412\u042b\u0425\u041e\u0414\u041d\u042b\u0415 \u0414\u0410\u041d\u041d\u042b\u0415<\/th>\n<\/tr>\n<tr>\n<th>1<\/th>\n<th>$2$ $1$<\/th>\n<th>$&gt;$<\/th>\n<\/tr>\n<tr>\n<th>2<\/th>\n<th>$1$ $2$<\/th>\n<th>$&lt;$<\/th>\n<\/tr>\n<tr>\n<th>3<\/th>\n<th>$1$ $1$<\/th>\n<th>$=$<\/th>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<pre class=\"lang:java decode:true \" title=\"e-olymp 266\">import java.util.Scanner;\r\n\r\nclass Main\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString x, y;\r\n\t\tx = in.next();\r\n\t\ty = in.next();\r\n\t\tif (x.length() &gt; y.length() ){\r\n\t\t\tSystem.out.print('&gt;');\r\n\t\t}\r\n\t\telse if (x.length() &lt; y.length() ){\r\n\t\t\tSystem.out.print('&lt;');\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint i = 0;\r\n\t\t\twhile (i &lt; x.length() &amp;&amp; x.charAt(i) == y.charAt(i)){\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\tif (i == x.length()) System.out.print('=');\r\n\t\telse if (x.charAt(i) &lt; y.charAt(i)) System.out.print('&lt;');\r\n\t\telse System.out.print('&gt;');\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u0414\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0434\u043b\u0438\u043d\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0438\u0441\u043b\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u0415\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0434\u043b\u0438\u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0433\u043e, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&lt;<\/strong>. \u0415\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0434\u043b\u0438\u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0433\u043e, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&gt;<\/strong>. \u0415\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f, \u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0443\u044e. \u0421\u0438\u043c\u0432\u043e\u043b \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u0438\u0448\u044c \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u0438\u043d\u0430 \u0447\u0438\u0441\u0435\u043b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0440\u0430\u0432\u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0446\u0438\u0444\u0440\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e.<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>\u2022 \u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 <a href=\"https:\/\/www.e-olymp.com\/ru\/problems\/266\" target=\"_blank\" rel=\"noopener\">e-olymp<\/a>.<\/p>\n<p>\u2022 \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/ideone.com\/Geb4Oy\" target=\"_blank\" rel=\"noopener\">ideone<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430 A \u0438 B. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0437\u0430\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u0446\u0435\u043b\u044b\u0445 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 A \u0438 B $(A, B &lt;= 10^{10000})$ \u043a\u0430\u0436\u0434\u043e\u0435 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 &lt;, \u0435\u0441\u043b\u0438 A &lt; B, = , \u0435\u0441\u043b\u0438 A = B \u0438 &gt;, \u0435\u0441\u043b\u0438 A &gt; B. \u0422\u0435\u0441\u0442\u044b # \u0412\u0425\u041e\u0414\u041d\u042b\u0415 \u0414\u0410\u041d\u041d\u042b\u0415 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=4638\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4638"}],"collection":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4638"}],"version-history":[{"count":8,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4638\/revisions"}],"predecessor-version":[{"id":4671,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/4638\/revisions\/4671"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}