{"id":239,"date":"2018-05-30T11:19:06","date_gmt":"2018-05-30T03:19:06","guid":{"rendered":"https:\/\/dragonyue.fortiddns.com\/blog\/?p=239"},"modified":"2022-07-31T13:04:51","modified_gmt":"2022-07-31T05:04:51","slug":"java-uva11461","status":"publish","type":"post","link":"https:\/\/dragonyue.fortiddns.com\/blog\/java-uva11461\/","title":{"rendered":"Java &#8211; UVA11461"},"content":{"rendered":"<pre class=\"lang:java decode:1 \" >\r\nimport java.util.Scanner;\r\n\r\n\/**\r\n * UVA11461\r\n *\/\r\npublic class UVA11461 {\r\n\r\n    public static void main(String[] args) {\r\n        Scanner sc = new Scanner(System.in);\r\n        while (sc.hasNext()) {\r\n            double n1 = sc.nextDouble(), n2 = sc.nextDouble();\r\n            if (n1 == 0 &amp;&amp; n2 == 0)\r\n                break;\r\n            int count = 0;\r\n            for (double i = n1; i &lt;= n2; i++) {\r\n                String Sqrt = String.valueOf(Math.sqrt(i));\r\n                String temp = Sqrt.substring(Sqrt.indexOf(&quot;.&quot;) + 1, Sqrt.length());\r\n                if (temp.length() == 1)\r\n                    count++;\r\n            }\r\n            System.out.println(count);\r\n        }\r\n        sc.close();\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>import java.util.Scanner; \/** * UVA11461 *\/ public clas [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":1,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonyue.fortiddns.com\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}