{"id":69,"date":"2026-03-21T23:29:23","date_gmt":"2026-03-21T15:29:23","guid":{"rendered":"https:\/\/fc4eye.top\/?p=69"},"modified":"2026-03-21T23:33:40","modified_gmt":"2026-03-21T15:33:40","slug":"c%e5%8d%95-%e5%a4%9a%e9%87%8d%e5%be%aa%e7%8e%af%e7%bb%93%e6%9e%84%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%ef%bc%88%e4%bb%85%e4%be%9b%e5%8f%82%e8%80%83%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fc4eye.top\/index.php\/2026\/03\/21\/c%e5%8d%95-%e5%a4%9a%e9%87%8d%e5%be%aa%e7%8e%af%e7%bb%93%e6%9e%84%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%ef%bc%88%e4%bb%85%e4%be%9b%e5%8f%82%e8%80%83%ef%bc%89\/","title":{"rendered":"\u5934\u6b4cC#\u5355\/\u591a\u91cd\u5faa\u73af\u7ed3\u6784\u7a0b\u5e8f\u8bbe\u8ba1\u89e3\u51b3\u65b9\u6848\uff08\u4ec5\u4f9b\u53c2\u8003\uff09"},"content":{"rendered":"\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e8b090b3637&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69e8b090b3637\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"725\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/fc4eye.top\/wp-content\/uploads\/2026\/03\/1774106144-55.jpg\" alt=\"\" class=\"wp-image-70\" srcset=\"https:\/\/fc4eye.top\/wp-content\/uploads\/2026\/03\/1774106144-55.jpg 1020w, https:\/\/fc4eye.top\/wp-content\/uploads\/2026\/03\/1774106144-55-300x213.jpg 300w, https:\/\/fc4eye.top\/wp-content\/uploads\/2026\/03\/1774106144-55-768x546.jpg 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"\u653e\u5927\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><strong>\u4e00   \u5355\u91cd\u5faa\u73af<\/strong><\/p>\n\n\n\n<p>\u7b2c1\u5173\uff1a\u6c421\u5230100\u95f4\u6574\u6570\u7684\u548c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch501\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int a = 0;\n            int i = 0;\n            while(i <= 100){\n                a += i;\n                i++;\n            }\n            Console.WriteLine(a);\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u7b2c2\u5173\uff1a\u6c42\u89e3\u51fan\u4ee5\u5185\u6240\u6709\u80fd\u88ab5\u6574\u9664\u7684\u6b63\u6574\u6570\u7684\u4e58\u79ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch502\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int a = int.Parse(Console.ReadLine());\n            int b = 1;\n            int i = 0;\n            while(i < a){\n                if(a % 5 == 0){\n                    b = b * a; \n                }\n                a--;\n            }\n            Console.WriteLine($\"s={b}\");\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u7b2c3\u5173\uff1a\u8f93\u51fa\u4efb\u610f\u4e00\u4e2a\u6570\u7684\u9006\u5e8f\u6570<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace ch503\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n            int a = int.Parse(Console.ReadLine());\n            int b = 0;\n            int c = a;\n            while (c != 0){\n                int d = c % 10;\n                b = b * 10 + d;\n                c = c \/ 10;\n            }\n            Console.WriteLine($\"\u9006\u5e8f\u6570\u662f\uff1a{b}\");\n\t\t\t\/*******end********\/\n\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u7b2c4\u5173\uff1a\u6c42\u6240\u6709\u6c34\u4ed9\u82b1\u6570\u7684\u548c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace ch504\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n            int i = 999;\n            int a = 0;\n            while(i &gt; 100){\n                int b = (int)Math.Pow((i \/ 100) , 3);\n                int c = (int)Math.Pow((i \/ 10) % 10 , 3);\n                int d = (int)Math.Pow((i % 10) , 3);\n                if(i == b + c + d){\n                    a = a + i ;\n                }\n                i--;\n            }\n            Console.WriteLine($\"sum={a}\");\n\t\t\t\/*******end********\/\n\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\ufffc<br>\u7b2c5\u5173\uff1a\u6590\u6ce2\u90a3\u5951\u6570\u5217<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch505\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t\t\tint a = int.Parse(Console.ReadLine());\n            long i = 1;\n            long j = 1;\n            long b = 0;\n            if(a >= 1){\n                b += i;\n            }\n            if(a >= 2){\n                b += j;\n            }\n            for(int k = 3; k <= a; k++){\n                long z = i + j;\n                b += z;\n                i = j;\n                j = z;\n            }\n            Console.WriteLine($\"sum={b}\");\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p><strong>\u4e8c   \u591a\u91cd\u5faa\u73af<\/strong><\/p>\n\n\n\n<p>\u7b2c1\u5173\uff1a\u4e5d\u4e5d\u4e58\u6cd5\u53e3\u8bc0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch601\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int a = int.Parse(Console.ReadLine());\n            if(a < 1 || a > 9){\n                Console.WriteLine(\"input error!\");\n                return;\n            }\n\t\t\tfor(int i = 1; i <= a; i++){\n                for(int j = 1; j <= i; j++){\n                    Console.Write($\"{i}*{j}={i * j}\\t\");\n                }\n                Console.WriteLine();\n            }\n\t\t\t\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u7b2c2\u5173\uff1a\u591a\u91cd\u5faa\u73af-\u6c42\u9636\u4e58\u4e4b\u548c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch602\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int n = int.Parse(Console.ReadLine());\n            long s = 0;\n            long b = 1;\n            if(n < 0){\n                s = 0;\n            }\n            else if(n == 0){\n                s = 1;\n            }\n            else{\n                for(int i = 1; i <= n; i++){\n                    b = b * i;\n                    s += b;\n                }\n            }\n            Console.WriteLine(s);\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u7b2c3\u5173\uff1a\u591a\u91cd\u5faa\u73af-\u6c42n\u4ee5\u5185\u6240\u6709\u7d20\u6570\u7684\u548c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch603\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int n = int.Parse(Console.ReadLine());\n            int a = 0;\n            for(int i = 2; i <=n; i++){\n                bool isPrime = true;\n                for(int j = 2; j * j <= i; j++){\n                    if(i % j == 0){\n                        isPrime = false;\n                        break;\n                    }\n                }\n                if(isPrime){\n                    a += i;\n                }\n            }\n            Console.WriteLine($\"\u7d20\u6570\u7684\u548c\uff1a{a}\");\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\uff08\u6ce8\uff1a \u8fd9\u4e32\u4ee3\u7801\u4e2d\uff0cisPrime\u662f\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u6574\u6570\u662f\u5426\u4e3a\u7d20\u6570\u7684\u51fd\u6570\uff0cbool\u662f\u7528\u6765\u903b\u8f91\u5224\u65ad \u771fture \u6216 \u5047false \u7684\u51fd\u6570\uff09<\/p>\n\n\n\n<p>\u7b2c4\u5173\uff1a\u591a\u91cd\u5faa\u73af-\u5bfb\u627e\u5b8c\u6570<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ch604\n{\n    class Program\n    {\n        static void Main(string&#91;] args)\n        {\n\t\t\t\/******begin*******\/\n\t    int n = int.Parse(Console.ReadLine());\n            for(int i = 2; i <= n; i ++){\n                int a = 0;\n                for(int j = 1; j < i; j ++){\n                    if(i % j == 0){\n                        a = a + j;\n                    }\n                }\n                if(a == i){\n                    Console.WriteLine(i);\n                }\n            }\n\t\t\t\/*******end********\/\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u6b64\u7b54\u6848\u4e3a\u81ea\u5df1\u6240\u505a\uff0c\u5e76\u975e\u539f\u9898\u7b54\u6848\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00 \u5355\u91cd\u5faa\u73af \u7b2c1\u5173\uff1a\u6c421\u5230100\u95f4\u6574\u6570\u7684\u548c \u7b2c2\u5173\uff1a\u6c42\u89e3\u51fan\u4ee5\u5185\u6240\u6709\u80fd\u88ab5\u6574\u9664\u7684\u6b63\u6574\u6570\u7684\u4e58\u79ef \u7b2c3\u5173\uff1a\u8f93\u51fa\u4efb\u610f\u4e00\u4e2a\u6570\u7684\u9006\u5e8f\u6570 \u7b2c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":70,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":4,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions\/74"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/media\/70"}],"wp:attachment":[{"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fc4eye.top\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}