{"id":261,"date":"2021-10-25T19:54:37","date_gmt":"2021-10-25T11:54:37","guid":{"rendered":"https:\/\/mzdyl.xyz\/?p=261"},"modified":"2022-03-19T00:25:52","modified_gmt":"2022-03-18T16:25:52","slug":"%e4%bd%9c%e4%b8%9a8-1","status":"publish","type":"post","link":"https:\/\/mzdyl.xyz\/index.php\/2021\/10\/25\/%e4%bd%9c%e4%b8%9a8-1\/","title":{"rendered":"\u4f5c\u4e1a8-1"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#include &lt;bits\/stdc++.h>\r\nusing namespace std;\r\n\r\nint a&#91;120]&#91;120];\r\nint temp&#91;1008611];\r\nint maxx&#91;120];\r\n\r\nint main()\r\n{\r\n\t\tcout &lt;&lt; \"\u751f\u6210\u4e86\u4e00\u4e2a\u4e5d\u4e5d\u4e58\u6cd5\u8868\u4f5c\u4e3a\u6570\u636e\"&lt;&lt; endl;\r\n\t\tfor(int y=1; y&lt;=10; y++)\r\n\t\t{\r\n\t\t\t\tfor(int x=1; x&lt;=10; x++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\ta&#91;y]&#91;x] = x*y;\r\n\t\t\t\t\t\tif(a&#91;y]&#91;x] &lt;10) cout &lt;&lt; ' ';\r\n\t\t\t\t\t\tcout &lt;&lt; a&#91;y]&#91;x] &lt;&lt; ' ';\r\n\t\t\t\t}\r\n\t\t\t\tcout &lt;&lt; endl;\r\n\t\t}\r\n\t\tfor(int y=1; y&lt;=10; y++)\r\n\t\t{\r\n\t\t\t\tfor(int x=1; x&lt;=10; x++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tmaxx&#91;y] +=a&#91;y]&#91;x];\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tfor(int y=1; y&lt;=10; y++)\r\n\t\t{\r\n\t\t\t\tprintf(\"%s%d%s %d\\n\",\"a&#91;\",y,\"]&#91;MAX] \",maxx&#91;y]);\r\n\t\t}\r\n}\r\n<\/code><\/pre>\n\n\n\n<p>\u4e24\u9053\u6c34\u9898\uff0c\u5c31\u4e0d\u505a\u89e3\u91ca\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;bits\/stdc++.h>\r\nusing namespace std;\r\n\r\nint a&#91;120]&#91;120];\r\nint temp&#91;1008611];\r\nint maxx&#91;120];\r\nint ans = 0;\r\n\r\nbool judge_prime(int a)\r\n{\r\n\t\tfor(int i = 2; i * i &lt;=a; i++)\r\n\t\t{\r\n\t\t\t\tif(a%i ==0)\r\n\t\t\t\t{\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n}\r\n\r\nint main()\r\n{\r\n\t\tcout &lt;&lt; \"\u751f\u6210\u4e86\u4e00\u4e2a\u4e5d\u4e5d\u4e58\u6cd5\u8868\u4f5c\u4e3a\u6570\u636e\"&lt;&lt; endl;\r\n\t\tfor(int y=1; y&lt;=10; y++)\r\n\t\t{\r\n\t\t\t\tfor(int x=1; x&lt;=10; x++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\ta&#91;y]&#91;x] = x*y;\r\n\t\t\t\t\t\tif(a&#91;y]&#91;x] &lt;10) cout &lt;&lt; ' ';\r\n\t\t\t\t\t\tcout &lt;&lt; a&#91;y]&#91;x] &lt;&lt; ' ';\r\n\t\t\t\t}\r\n\t\t\t\tcout &lt;&lt; endl;\r\n\t\t}\r\n\t\tfor(int y=1; y&lt;=10; y++)\r\n\t\t{\r\n\t\t\t\tfor(int x=1; x&lt;=10; x++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tif(judge_prime(a&#91;y]&#91;x])) ans++;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tcout &lt;&lt; \"\u6240\u4ee5\u8868\u4e2d\u7d20\u6570\u4e2a\u6570\" &lt;&lt; ans;\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e24\u9053\u6c34\u9898\uff0c\u5c31\u4e0d\u505a\u89e3\u91ca\u4e86<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-c_plus"],"_links":{"self":[{"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":2,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mzdyl.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}