{"id":124441,"date":"2026-11-19T01:40:37","date_gmt":"2026-11-18T17:40:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/124441.html"},"modified":"2026-11-19T01:40:37","modified_gmt":"2026-11-18T17:40:37","slug":"%e8%93%9d%e6%a1%a5%e6%9d%af%c2%b7%e5%85%a8%e5%9b%bd%e9%9d%92%e5%b0%91%e5%b9%b4%e4%bf%a1%e6%81%af%e7%b4%a0%e5%85%bb%e5%a4%a7%e8%b5%9b%c2%b7%e7%94%b5%e5%ad%90%e5%ad%a6%e4%bc%9apython-c%e8%80%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/124441.html","title":{"rendered":"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790"},"content":{"rendered":"<p>\u8fdb\u5165\u5341\u4e00\u6708&#xff0c;\u9752\u5c11\u513f\u4fe1\u606f\u5b66\u8d5b\u4e8b\u8fce\u6765\u5bc6\u96c6\u5907\u8003\u671f&#xff0c;\u51e0\u5927\u6807\u5fd7\u6027\u6bd4\u8d5b\u7684\u65f6\u95f4\u8282\u70b9\u90fd\u5df2\u660e\u786e\u3002<\/p>\n<p>\u7b2c\u5341\u516b\u5c4a\u84dd\u6865\u676f&#xff08;\u8f6f\u4ef6\u8d5b C\/C&#043;&#043; \u7a0b\u5e8f\u8bbe\u8ba1\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1\u4e3a\u6838\u5fc3\u79d1\u76ee&#xff09;\u62a5\u540d 2026-10-08 10:00 \u5f00\u542f\u30012026-12-18 14:00 \u622a\u6b62&#xff0c;\u7701\u8d5b \/ \u5168\u56fd\u9009\u62d4\u8d5b\u5b9a\u4e8e 2027 \u5e74 4 \u6708 10 \u65e5&#xff08;C\/C&#043;&#043;\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1 9:00\u201413:00&#xff09;&#xff0c;\u5168\u56fd\u603b\u51b3\u8d5b 2027 \u5e74 6 \u6708 12 \u65e5&#xff08;\u5b98\u7f51 dasai.lanqiao.cn \u901a\u77e5 3004&#xff09;\u3002\u84dd\u6865\u676f\u7684\u586b\u7a7a\u9898\u4e0e\u7b97\u6cd5\u9898\u8fd1\u5e74\u9891\u7e41\u51fa\u73b0\u300c\u540c\u4f59\u300d\u300c\u97e9\u4fe1\u70b9\u5175\u300d\u300c\u7269\u4e0d\u77e5\u6570\u300d\u7c7b\u8003\u70b9\u3002<\/p>\n<p>\u4e2d\u56fd\u7535\u5b50\u5b66\u4f1a 2026 \u5e74 12 \u6708\u9752\u5c11\u5e74\u8f6f\u4ef6\u7f16\u7a0b\u7b49\u7ea7\u8003\u8bd5&#xff08;C\/C&#043;&#043; \u4e00\u7ea7\u81f3\u5341\u7ea7\u3001Python \u4e00\u7ea7\u81f3\u516d\u7ea7&#xff09;\u62a5\u540d 2026-09-23\u201412-02 16:00&#xff0c;\u5168\u56fd\u6d4b\u8bd5 12-10 19:00\u201421:00&#xff0c;\u7edf\u8003 12-12&#xff08;\u5b98\u7f51 qceit.org.cn&#xff09;\u3002\u8003\u7ea7\u628a\u300c\u53d6\u4f59\u4e0e\u6574\u9664\u300d\u5217\u4e3a\u5165\u95e8\u5fc5\u638c\u63e1\u7684\u8fd0\u7b97\u80fd\u529b\u3002<\/p>\n<p>\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b 2026\u20142027 \u8d5b\u5b63\u7b97\u6cd5\u5e94\u7528\u4e3b\u9898\u8d5b&#xff0c;\u590d\u8d5b&#xff08;\u5730\u533a\u8d5b&#xff09;2027 \u5e74 5\u20147 \u6708\u3001\u603b\u51b3\u8d5b 2027 \u5e74 7\u20148 \u6708&#xff0c;\u8003\u70b9\u5927\u7eb2\u8986\u76d6\u6570\u8bba\u4e0e\u57fa\u7840\u7b97\u6cd5\u3002<\/p>\n<p>\u4e09\u4e2a\u8d5b\u4e8b\u7ed5\u4e0d\u5f00\u4e00\u4e2a\u300c\u770b\u7740\u53e4\u8001\u3001\u5b9e\u5219\u9ad8\u9891\u300d\u7684\u6570\u8bba\u5de5\u5177\u2014\u2014\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406&#xff08;Chinese Remainder Theorem&#xff0c;CRT&#xff09;\u3002\u5b83\u89e3\u51b3\u7684\u662f\u300c\u4e00\u4e2a\u6570\u9664\u4ee5\u5404\u6570\u5206\u522b\u4f59\u51e0&#xff0c;\u6c42\u8fd9\u4e2a\u6570\u300d\u7684\u7ecf\u5178\u95ee\u9898&#xff0c;\u4e5f\u5c31\u662f\u300a\u5b59\u5b50\u7b97\u7ecf\u300b\u91cc\u7684\u300c\u7269\u4e0d\u77e5\u6570\u300d\u3001\u6c11\u95f4\u4fd7\u79f0\u7684\u300c\u97e9\u4fe1\u70b9\u5175\u300d\u3002\u4e0a\u4e00\u7bc7\u6211\u4eec\u8bb2\u4e86\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u89e3\u5355\u4e2a\u540c\u4f59\u65b9\u7a0b ax\u2261b(mod m)&#xff0c;\u8fd9\u4e00\u7bc7\u628a\u591a\u4e2a\u540c\u4f59\u65b9\u7a0b\u8054\u7acb\u8d77\u6765&#xff0c;\u4ece\u539f\u7406\u5230\u4ee3\u7801\u4e00\u6b21\u8bb2\u900f\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u7b97\u6cd5\u5b66\u4e60\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261118174036-6afde31421b96.jpg\" \/><\/p>\n<h3>\u4e00\u3001\u9898\u76ee \/ \u9879\u76ee\u76ee\u6807<\/h3>\n<p>\u3010\u539f\u521b\u9898\u3011\u6821\u56ed\u79d1\u6280\u8282\u300c\u5bc6\u7801\u9501\u7f16\u53f7\u300d<\/p>\n<p>\u79d1\u6280\u8282\u95ed\u5e55\u5f0f\u4e0a\u6709\u4e00\u4e2a\u5bc6\u7801\u5b9d\u7bb1&#xff0c;\u5bfc\u5e08\u628a\u5f00\u542f\u5bc6\u7801\u85cf\u5728\u4e00\u7ec4\u300c\u4f59\u6570\u7ebf\u7d22\u300d\u91cc\u3002\u7ebf\u7d22\u5361\u4e0a\u5199\u7740\u82e5\u5e72\u6761\u4ef6&#xff1a;\u5bc6\u7801\u7f16\u53f7 x \u9664\u4ee5 m\u1d62 \u4f59 a\u1d62\u3002\u8bf7\u4f60\u6839\u636e\u6240\u6709\u7ebf\u7d22&#xff0c;\u8fd8\u539f\u51fa\u6ee1\u8db3\u6761\u4ef6\u7684\u6700\u5c0f\u975e\u8d1f\u6574\u6570\u7f16\u53f7\u3002<\/p>\n<p>\u4efb\u52a1 A&#xff08;\u6a21\u6570\u4e24\u4e24\u4e92\u8d28&#xff09; \u7ed9\u5b9a k \u7ec4 (m\u1d62, a\u1d62)&#xff0c;\u4fdd\u8bc1 m\u1d62 \u4e24\u4e24\u4e92\u8d28\u3002\u6c42\u6700\u5c0f\u7684\u975e\u8d1f\u6574\u6570 x&#xff0c;\u4f7f\u5f97\u5bf9\u4efb\u610f i \u90fd\u6709 x \u2261 a\u1d62 (mod m\u1d62)\u3002\u9898\u76ee\u4fdd\u8bc1\u5728 M &#061; m\u2081\u00b7m\u2082\u00b7\u2026\u00b7m\u2096 \u8303\u56f4\u5185\u5fc5\u6709\u552f\u4e00\u89e3\u3002<\/p>\n<p>\u4efb\u52a1 B&#xff08;\u6a21\u6570\u4e0d\u4e00\u5b9a\u4e92\u8d28&#xff09; \u7ed9\u5b9a k \u7ec4 (m\u1d62, a\u1d62)&#xff0c;\u6a21\u6570\u53ef\u80fd\u4e0d\u4e92\u8d28\u3002\u82e5\u5b58\u5728\u6ee1\u8db3\u6240\u6709\u6761\u4ef6\u7684 x&#xff0c;\u8f93\u51fa\u6700\u5c0f\u975e\u8d1f\u89e3 x \u4ee5\u53ca\u6240\u6709\u89e3\u7684\u6700\u5c0f\u5faa\u73af\u5468\u671f&#xff08;\u5373\u5404\u6a21\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570 lcm&#xff09;&#xff1b;\u82e5\u65e0\u89e3&#xff0c;\u8f93\u51fa -1\u3002<\/p>\n<p>\u8f93\u5165\u683c\u5f0f&#xff1a;\u7b2c\u4e00\u884c k&#xff1b;\u63a5\u4e0b\u6765 k \u884c&#xff0c;\u6bcf\u884c\u4e24\u4e2a\u6574\u6570 m\u1d62 a\u1d62\u3002 \u8f93\u51fa\u683c\u5f0f&#xff1a;\u4efb\u52a1 A \u8f93\u51fa\u4e00\u4e2a\u6570&#xff08;\u6700\u5c0f\u975e\u8d1f\u89e3&#xff09;&#xff1b;\u4efb\u52a1 B \u8f93\u51fa\u300c\u89e3 \u5468\u671f\u300d\u4e24\u4e2a\u6570&#xff0c;\u65e0\u89e3\u8f93\u51fa -1\u3002<\/p>\n<p>\u6837\u4f8b 1&#xff08;\u4e92\u8d28\u7248\u00b7\u97e9\u4fe1\u70b9\u5175&#xff09; \u8f93\u5165&#xff1a;3 \/ 3 2 \/ 5 3 \/ 7 2&#xff08;\u4e09\u884c\u5206\u522b\u4e3a m a&#xff09; \u8f93\u51fa&#xff1a;23\u3000&#xff08;23 mod 3&#061;2&#xff0c;mod 5&#061;3&#xff0c;mod 7&#061;2&#xff1b;\u4e14 105 \u4ee5\u5185\u552f\u4e00&#xff09;<\/p>\n<p>\u6837\u4f8b 2&#xff08;\u901a\u7528\u7248\u00b7\u6709\u89e3&#xff09; \u8f93\u5165&#xff1a;2 \/ 4 1 \/ 6 5 \u8f93\u51fa&#xff1a;5 12\u3000&#xff08;5 mod 4&#061;1&#xff0c;mod 6&#061;5&#xff1b;\u5468\u671f lcm(4,6)&#061;12&#xff09;<\/p>\n<p>\u6837\u4f8b 3&#xff08;\u901a\u7528\u7248\u00b7\u65e0\u89e3&#xff09; \u8f93\u5165&#xff1a;2 \/ 4 2 \/ 6 3 \u8f93\u51fa&#xff1a;-1\u3000&#xff08;x\u22612 (mod 4) \u8981\u6c42 x \u4e3a\u5076\u6570&#xff0c;x\u22613 (mod 6) \u8981\u6c42 x \u4e3a\u5947\u6570&#xff0c;\u77db\u76fe&#xff09;<\/p>\n<h3>\u4e8c\u3001\u6838\u5fc3\u8003\u70b9<\/h3>\n<li>\u540c\u4f59\u4e0e\u5269\u4f59\u7cfb&#xff1a;x \u2261 a (mod m) \u8868\u793a x\u2212a \u80fd\u88ab m \u6574\u9664&#xff1b;\u89e3\u5728\u6a21 M \u610f\u4e49\u4e0b\u552f\u4e00\u3002<\/li>\n<li>\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u6c42\u9006\u5143&#xff1a;\u82e5 gcd(A, m)&#061;1&#xff0c;\u5219\u5b58\u5728 A \u5728\u6a21 m \u4e0b\u7684\u4e58\u6cd5\u9006\u5143 inv&#xff0c;\u4f7f A\u00b7inv \u2261 1 (mod m)&#xff0c;\u7531 exgcd \u6c42\u7cfb\u6570\u5f97\u5230\u3002<\/li>\n<li>\u4e92\u8d28\u7248 CRT \u6784\u9020&#xff1a;M&#061;\u220fm\u1d62&#xff0c;M\u1d62&#061;M\/m\u1d62&#xff0c;\u4ee4 t\u1d62&#061;M\u1d62 \u5728\u6a21 m\u1d62 \u4e0b\u7684\u9006\u5143&#xff0c;\u5219 x &#061; \u03a3 a\u1d62\u00b7M\u1d62\u00b7t\u1d62 (mod M)\u3002\u56e0\u4e3a M\u1d62 \u6a21\u5176\u4f59\u6a21\u6570\u4e3a 0\u3001\u6a21 m\u1d62 \u4e58 t\u1d62 \u6070\u4e3a 1&#xff0c;\u5404\u9879\u300c\u53ea\u5728\u81ea\u5df1\u90a3\u4e00\u7ef4\u8d21\u732e a\u1d62\u300d\u3002<\/li>\n<li>\u901a\u7528\u7248 CRT \u9010\u6761\u5408\u5e76&#xff1a;\u628a\u4e24\u4e2a\u540c\u4f59\u65b9\u7a0b x\u2261a (mod m)\u3001x\u2261b (mod n) \u5408\u5e76\u6210\u4e00\u4e2a&#xff0c;\u53cd\u590d\u8fdb\u884c&#xff1b;\u7528\u88f4\u8700\u5b9a\u7406\u5224\u5b9a\u65e0\u89e3\u6761\u4ef6\u3002<\/li>\n<li>\u65e0\u89e3\u5224\u5b9a&#xff1a;\u4e24\u5f0f\u5408\u5e76\u65f6&#xff0c;\u8bbe g&#061;gcd(m,n)&#xff0c;\u5f53\u4e14\u4ec5\u5f53 (b\u2212a) \u80fd\u88ab g \u6574\u9664\u65f6\u6709\u89e3&#xff0c;\u5426\u5219\u77db\u76fe&#xff08;\u6837\u4f8b 3 \u5373 g&#061;2 \u800c b\u2212a&#061;1 \u4e0d\u88ab 2 \u6574\u9664&#xff09;\u3002<\/li>\n<li>\u5468\u671f\u662f lcm \u4e0d\u662f\u4e58\u79ef&#xff1a;\u4e92\u8d28\u65f6 lcm&#061;\u220fm\u1d62&#xff1b;\u4e0d\u4e92\u8d28\u65f6\u5468\u671f lcm(m,n)&#061;m\/g\u00b7n&#xff0c;\u8fd9\u662f\u901a\u7528\u7248\u4e0e\u4e92\u8d28\u7248\u7684\u5173\u952e\u533a\u522b\u3002<\/li>\n<li>\u6ea2\u51fa\u4e0e\u5f52\u6b63&#xff1a;M\u3001a\u1d62\u00b7M\u1d62\u00b7t\u1d62 \u53ef\u8fbe 10\u00b9\u2078 \u91cf\u7ea7&#xff0c;C&#043;&#043; \u7528 __int128 \u4e2d\u95f4\u91cf&#xff1b;Python \u5929\u7136\u5927\u6574\u6570\u3002\u9006\u5143\u7cfb\u6570\u53ef\u80fd\u4e3a\u8d1f&#xff0c;\u5fc5\u987b\u53d6\u6a21\u5f52\u6b63\u5230 [0, m)\u3002<\/li>\n<h3>\u4e09\u3001\u89e3\u6cd5 \/ \u62c6\u89e3<\/h3>\n<h4>3.1 \u4e92\u8d28\u7248 CRT&#xff08;\u4efb\u52a1 A&#xff09;<\/h4>\n<p>\u5bf9\u6bcf\u4e2a i&#xff1a;<\/p>\n<ul>\n<li>\u4ee4 M &#061; \u220fm\u1d62&#xff0c;M\u1d62 &#061; M \/ m\u1d62\u3002<\/li>\n<li>\u56e0 m\u1d62 \u4e24\u4e24\u4e92\u8d28&#xff0c;gcd(M\u1d62, m\u1d62)&#061;1&#xff0c;\u7528 exgcd \u6c42 M\u1d62\u00b7t\u1d62 \u2261 1 (mod m\u1d62) \u7684 t\u1d62\u3002<\/li>\n<li>\u7d2f\u52a0 x &#061; (x &#043; a\u1d62\u00b7M\u1d62\u00b7t\u1d62) mod M\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4ec0\u4e48\u6b63\u786e&#xff1a;\u5bf9\u7b2c j \u4e2a\u65b9\u7a0b\u53d6\u6a21&#xff0c;M\u1d62 (i\u2260j) \u542b\u56e0\u5b50 m\u2c7c \u6545\u4e3a 0&#xff0c;\u53ea\u5269\u7b2c j \u9879 a\u2c7c\u00b7M\u2c7c\u00b7t\u2c7c \u2261 a\u2c7c\u00b71 &#061; a\u2c7c (mod m\u2c7c)\u3002\u6bcf\u4e00\u9879\u5404\u7ba1\u4e00\u7ef4&#xff0c;\u53e0\u52a0\u5373\u540c\u65f6\u6ee1\u8db3\u5168\u90e8\u6761\u4ef6\u3002<\/p>\n<h4>3.2 \u901a\u7528\u7248 CRT&#xff08;\u4efb\u52a1 B&#xff09;<\/h4>\n<p>\u7ef4\u62a4\u5f53\u524d\u5408\u5e76\u7ed3\u679c x \u2261 a (mod m)&#xff0c;\u521d\u59cb\u4e3a\u7b2c\u4e00\u6761\u3002\u5408\u5e76\u4e0b\u4e00\u6761 x \u2261 b (mod n)&#xff1a;<\/p>\n<li>\u628a x \u5199\u6210 a &#043; m\u00b7t&#xff0c;\u4ee3\u5165\u7b2c\u4e8c\u5f0f\u8981\u6c42 a &#043; m\u00b7t \u2261 b (mod n)&#xff0c;\u5373 m\u00b7t \u2261 b\u2212a (mod n)\u3002<\/li>\n<li>\u8bbe g &#061; gcd(m, n)\u3002\u82e5 (b\u2212a) % g \u2260 0&#xff0c;\u65e0\u89e3\u3002<\/li>\n<li>\u4e24\u8fb9\u540c\u9664 g&#xff1a;(m\/g)\u00b7t \u2261 (b\u2212a)\/g (mod n\/g)\u3002\u6b64\u65f6 gcd(m\/g, n\/g)&#061;1&#xff0c;\u7528 exgcd \u6c42 m\/g \u5728\u6a21 n\/g \u4e0b\u7684\u9006\u5143 inv&#xff0c;\u5219 t &#061; ((b\u2212a)\/g \u00b7 inv) mod (n\/g)\u3002<\/li>\n<li>\u65b0\u7684 x &#061; a &#043; m\u00b7t&#xff0c;\u65b0\u6a21\u6570 m\u2032 &#061; lcm(m, n) &#061; m\/g\u00b7n\u3002\u7ee7\u7eed\u5408\u5e76\u4e0b\u4e00\u6761\u3002<\/li>\n<h4>3.3 \u53c2\u8003\u4ee3\u7801 \u00b7 C&#043;&#043;<\/h4>\n<p>#include &lt;iostream&gt;<br \/>\n#include &lt;vector&gt;<br \/>\n#include &lt;numeric&gt;<br \/>\n#include &lt;utility&gt;<br \/>\nusing namespace std;<br \/>\nusing ll &#061; long long;<\/p>\n<p>\/\/ \u6269\u5c55\u6b27\u51e0\u91cc\u5f97&#xff1a;\u8fd4\u56de gcd(a,b)&#xff0c;\u5e76\u6c42 ax&#043;by&#061;gcd \u7684\u4e00\u7ec4\u89e3<br \/>\nll exgcd(ll a, ll b, ll &amp;x, ll &amp;y) {<br \/>\n    if (b &#061;&#061; 0) { x &#061; 1; y &#061; 0; return a; }<br \/>\n    ll x1, y1;<br \/>\n    ll g &#061; exgcd(b, a % b, x1, y1);<br \/>\n    x &#061; y1;<br \/>\n    y &#061; x1 &#8211; (a \/ b) * y1;<br \/>\n    return g;<br \/>\n}<\/p>\n<p>\/\/ \u4efb\u52a1A&#xff1a;\u4e92\u8d28\u7248 CRT&#xff0c;\u8fd4\u56de\u6700\u5c0f\u975e\u8d1f\u89e3<br \/>\nll crtCoprime(const vector&lt;ll&gt; &amp;rem, const vector&lt;ll&gt; &amp;mod) {<br \/>\n    ll M &#061; 1;<br \/>\n    for (ll m : mod) M *&#061; m;<br \/>\n    __int128 ans &#061; 0;<br \/>\n    int k &#061; mod.size();<br \/>\n    for (int i &#061; 0; i &lt; k; i&#043;&#043;) {<br \/>\n        ll Mi &#061; M \/ mod[i];<br \/>\n        ll x, y;<br \/>\n        exgcd(Mi, mod[i], x, y);                   \/\/ Mi*x \u2261 1 (mod mod[i])<br \/>\n        ll t &#061; (x % mod[i] &#043; mod[i]) % mod[i];     \/\/ \u9006\u5143\u5f52\u6b63<br \/>\n        ans &#061; (ans &#043; (__int128)rem[i] * Mi % M * t) % M;<br \/>\n    }<br \/>\n    return (ll)((ans % M &#043; M) % M);<br \/>\n}<\/p>\n<p>\/\/ \u4efb\u52a1B&#xff1a;\u901a\u7528\u7248 CRT\u3002\u6709\u89e3\u8fd4\u56de {\u6700\u5c0f\u975e\u8d1f\u89e3, \u5468\u671flcm}&#xff0c;\u65e0\u89e3\u8fd4\u56de {-1,-1}<br \/>\npair&lt;ll,ll&gt; crtGeneral(const vector&lt;ll&gt; &amp;rem, const vector&lt;ll&gt; &amp;mod) {<br \/>\n    ll a &#061; rem[0] % mod[0], m &#061; mod[0];<br \/>\n    int k &#061; mod.size();<br \/>\n    for (int i &#061; 1; i &lt; k; i&#043;&#043;) {<br \/>\n        ll b &#061; rem[i] % mod[i], n &#061; mod[i];<br \/>\n        ll g &#061; std::gcd(m, n);<br \/>\n        if ((b &#8211; a) % g !&#061; 0) return {-1, -1};      \/\/ \u88f4\u8700\u5b9a\u7406\u5224\u65e0\u89e3<br \/>\n        ll x, y;<br \/>\n        exgcd(m \/ g, n \/ g, x, y);                  \/\/ (m\/g) \u5728\u6a21 (n\/g) \u4e0b\u7684\u9006\u5143<br \/>\n        __int128 t &#061; (__int128)(((b &#8211; a) \/ g) % (n \/ g)) * x % (n \/ g);<br \/>\n        t &#061; (t &#043; (n \/ g)) % (n \/ g);                \/\/ \u5f52\u6b63<br \/>\n        __int128 lcm &#061; (__int128)(m \/ g) * n;<br \/>\n        a &#061; (ll)(((__int128)a &#043; (__int128)m * t) % lcm);<br \/>\n        m &#061; (ll)lcm;                                \/\/ \u5468\u671f\u66f4\u65b0\u4e3a lcm<br \/>\n    }<br \/>\n    a &#061; (a % m &#043; m) % m;<br \/>\n    return {a, m};<br \/>\n}<\/p>\n<p>int main() {<br \/>\n    \/\/ \u6837\u4f8b1 \u97e9\u4fe1\u70b9\u5175<br \/>\n    cout &lt;&lt; crtCoprime({2,3,2}, {3,5,7}) &lt;&lt; &#034;\\\\n&#034;;        \/\/ 23<br \/>\n    auto r1 &#061; crtGeneral({2,3,2}, {3,5,7});<br \/>\n    cout &lt;&lt; r1.first &lt;&lt; &#034; &#034; &lt;&lt; r1.second &lt;&lt; &#034;\\\\n&#034;;        \/\/ 23 105<br \/>\n    \/\/ \u6837\u4f8b2 \u975e\u4e92\u8d28\u6709\u89e3 \/ \u6837\u4f8b3 \u975e\u4e92\u8d28\u65e0\u89e3<br \/>\n    auto r2 &#061; crtGeneral({1,5}, {4,6});<br \/>\n    cout &lt;&lt; r2.first &lt;&lt; &#034; &#034; &lt;&lt; r2.second &lt;&lt; &#034;\\\\n&#034;;        \/\/ 5 12<br \/>\n    auto r3 &#061; crtGeneral({2,3}, {4,6});<br \/>\n    cout &lt;&lt; r3.first &lt;&lt; &#034; &#034; &lt;&lt; r3.second &lt;&lt; &#034;\\\\n&#034;;        \/\/ -1 -1<br \/>\n    return 0;<br \/>\n}<\/p>\n<h4>3.4 \u53c2\u8003\u4ee3\u7801 \u00b7 Python<\/h4>\n<p>from math import gcd<\/p>\n<p>def exgcd(a, b):<br \/>\n    if b &#061;&#061; 0:<br \/>\n        return a, 1, 0<br \/>\n    g, x, y &#061; exgcd(b, a % b)<br \/>\n    return g, y, x &#8211; (a \/\/ b) * y<\/p>\n<p>def crt_coprime(rem, mod):<br \/>\n    M &#061; 1<br \/>\n    for m in mod:<br \/>\n        M *&#061; m<br \/>\n    ans &#061; 0<br \/>\n    for i, m in enumerate(mod):<br \/>\n        Mi &#061; M \/\/ m<br \/>\n        g, x, _ &#061; exgcd(Mi, m)          # gcd(Mi,m)&#061;1<br \/>\n        t &#061; x % m                        # \u9006\u5143\u5f52\u6b63<br \/>\n        ans &#061; (ans &#043; rem[i] * Mi * t) % M<br \/>\n    return ans % M<\/p>\n<p>def crt_general(rem, mod):<br \/>\n    a, m &#061; rem[0] % mod[0], mod[0]<br \/>\n    for i in range(1, len(rem)):<br \/>\n        b, n &#061; rem[i] % mod[i], mod[i]<br \/>\n        g &#061; gcd(m, n)<br \/>\n        if (b &#8211; a) % g !&#061; 0:<br \/>\n            return None                  # \u65e0\u89e3<br \/>\n        g2, inv, _ &#061; exgcd(m \/\/ g, n \/\/ g)<br \/>\n        t &#061; ((b &#8211; a) \/\/ g) * inv % (n \/\/ g)<br \/>\n        lcm &#061; m \/\/ g * n<br \/>\n        a &#061; (a &#043; m * t) % lcm<br \/>\n        m &#061; lcm<br \/>\n    return a % m, m<\/p>\n<p># \u6837\u4f8b\u6838\u9a8c<br \/>\nprint(crt_coprime([2,3,2], [3,5,7]))   # 23<br \/>\nprint(crt_general([2,3,2], [3,5,7]))   # (23, 105)<br \/>\nprint(crt_general([1,5], [4,6]))       # (5, 12)<br \/>\nprint(crt_general([2,3], [4,6]))       # None<\/p>\n<h3>\u56db\u3001\u590d\u6742\u5ea6\u5206\u6790<\/h3>\n<table>\n<tr>\u7248\u672c\u65f6\u95f4\u590d\u6742\u5ea6\u7a7a\u95f4\u590d\u6742\u5ea6\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u4e92\u8d28\u7248<\/td>\n<td>O(k \u00b7 log M)<\/td>\n<td>O(k)<\/td>\n<td>k \u4e2a\u65b9\u7a0b\u5404\u6c42\u4e00\u6b21 exgcd&#xff0c;M \u4e3a\u6a21\u6570\u4e58\u79ef<\/td>\n<\/tr>\n<tr>\n<td>\u901a\u7528\u7248<\/td>\n<td>O(k \u00b7 log(max m\u1d62))<\/td>\n<td>O(1)<\/td>\n<td>\u9010\u6761\u5408\u5e76&#xff0c;\u6bcf\u6b65\u4e00\u6b21 gcd &#043; \u4e00\u6b21 exgcd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e24\u7248\u90fd\u8fdc\u4f18\u4e8e\u300c\u5728 [0, M) \u91cc\u9010\u4e2a\u679a\u4e3e\u9a8c\u8bc1\u300d\u7684\u6734\u7d20\u505a\u6cd5&#xff08;\u540e\u8005\u5728 M \u5f88\u5927\u65f6\u5b8c\u5168\u4e0d\u53ef\u884c&#xff09;\u3002<\/p>\n<h3>\u4e94\u3001\u4e03\u4e2a\u6613\u9519\u70b9<\/h3>\n<li>\u4f59\u6570\u672a\u5f52\u6b63&#xff1a;\u8f93\u5165 a\u1d62 \u53ef\u80fd \u2265 m\u1d62 \u6216\u4e3a\u8d1f&#xff0c;\u5148\u53d6 a %&#061; m \u5e76\u5f52\u6b63&#xff0c;\u5426\u5219\u5224\u5b9a\u4e0e\u5408\u5e76\u90fd\u4f1a\u9519\u3002<\/li>\n<li>\u9006\u5143\u7cfb\u6570\u5fd8\u8bb0\u53d6\u6a21\u5f52\u6b63&#xff1a;exgcd \u8fd4\u56de\u7684 x \u5e38\u4e3a\u8d1f\u6570&#xff0c;\u5fc5\u987b (x % m &#043; m) % m&#xff0c;\u5426\u5219\u7d2f\u52a0\u51fa\u73b0\u8d1f\u503c\u3002<\/li>\n<li>\u901a\u7528\u7248\u7528\u4e58\u79ef\u5f53\u5468\u671f&#xff1a;\u4e0d\u4e92\u8d28\u65f6\u5468\u671f\u662f lcm(m,n)&#061;m\/g\u00b7n&#xff0c;\u4e0d\u662f m\u00b7n&#xff1b;\u5199\u6210 m\u00b7n \u4f1a\u6f0f\u89e3\u3001\u5468\u671f\u504f\u5927\u3002<\/li>\n<li>\u65e0\u89e3\u5224\u5b9a\u6761\u4ef6\u5199\u9519&#xff1a;\u662f (b\u2212a) % g !&#061; 0&#xff0c;\u4e0d\u662f !&#061; 1\u3001\u4e5f\u4e0d\u662f\u6f0f\u5224&#xff1b;g&#061;gcd(m,n) \u800c\u975e gcd \u4e4b\u540e\u7684\u503c\u3002<\/li>\n<li>\u540c\u9664 g \u540e\u53d6\u6a21\u7684\u6a21\u6570&#xff1a;t \u7684\u6a21\u662f n \/\/ g&#xff0c;\u4e0d\u662f n&#xff1b;\u8fd9\u91cc\u5199\u9519\u4f1a\u5bfc\u81f4 t \u843d\u5728\u9519\u8bef\u5269\u4f59\u7cfb\u3002<\/li>\n<li>\u4e2d\u95f4\u91cf\u6ea2\u51fa&#xff1a;a\u1d62\u00b7M\u1d62\u00b7t\u1d62 \u4e0e m\u00b7t \u53ef\u8d85 64 \u4f4d&#xff0c;C&#043;&#043; \u5fc5\u987b\u7528 __int128 \u627f\u63a5\u518d\u53d6\u6a21&#xff0c;\u76f4\u63a5 long long \u76f8\u4e58\u4f1a\u6ea2\u51fa\u5f97\u5230\u9519\u8bef\u89e3\u3002<\/li>\n<li>\u4e92\u8d28\u5224\u65ad\u524d\u63d0&#xff1a;\u4e92\u8d28\u7248\u6784\u9020\u4f9d\u8d56 m\u1d62 \u4e24\u4e24\u4e92\u8d28&#xff1b;\u82e5\u9898\u76ee\u672a\u4fdd\u8bc1&#xff0c;\u5fc5\u987b\u6539\u7528\u901a\u7528\u7248&#xff0c;\u5426\u5219 M\u1d62 \u4e0e m\u1d62 \u4e0d\u4e92\u8d28\u3001\u9006\u5143\u4e0d\u5b58\u5728&#xff08;exgcd \u8fd4\u56de\u7684 g\u22601&#xff09;\u3002<\/li>\n<h3>\u516d\u3001\u8fdb\u9636\u65b9\u5411<\/h3>\n<ul>\n<li>\u7ebf\u6027\u540c\u4f59\u65b9\u7a0b\u7ec4\u4e0e exgcd \u7684\u5173\u7cfb&#xff1a;\u672c\u7bc7\u662f\u300c\u591a\u4e2a\u65b9\u7a0b\u8054\u7acb\u300d&#xff0c;\u4e0a\u4e00\u7bc7\u300a\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u4e0e\u7ebf\u6027\u540c\u4f59\u65b9\u7a0b\u300b\u662f\u300c\u5355\u4e2a\u65b9\u7a0b ax\u2261b(mod m)\u300d&#xff0c;\u4e24\u8005\u5171\u7528 exgcd \u8fd9\u4e00\u5e95\u5ea7&#xff0c;\u6ce8\u610f\u533a\u5206\u5efa\u6a21\u5c42\u6b21\u3002<\/li>\n<li>\u6c42\u7b2c k \u5c0f\u7684\u6b63\u6570\u89e3&#xff1a;\u6700\u5c0f\u975e\u8d1f\u89e3 x\u2080 \u786e\u5b9a\u540e&#xff0c;\u6240\u6709\u89e3\u4e3a x\u2080 &#043; t\u00b7M&#xff0c;\u7b2c k \u5c0f\u6b63\u6570\u89e3\u4e3a x\u2080 &#043; (k\u22121)\u00b7M&#xff08;x\u2080&#061;0 \u65f6\u9700\u5355\u72ec\u5904\u7406&#xff09;\u3002<\/li>\n<li>CRT \u4e0e\u5408\u6570\u6a21\u5206\u89e3&#xff1a;\u628a\u4e00\u4e2a\u5927\u5408\u6570\u6a21 m&#061;\u220fp\u1d62^e\u1d62 \u62c6\u6210\u4e92\u8d28\u7684\u7d20\u6570\u5e42&#xff0c;\u5728\u5404\u5206\u91cf\u4e0a\u6c42\u89e3\u518d CRT \u5408\u5e76&#xff0c;\u662f\u5b8c\u5168\u5269\u4f59\u7cfb\u5206\u89e3\u7684\u5e38\u7528\u6280\u5de7\u3002<\/li>\n<li>\u6b27\u62c9\u5b9a\u7406 \/ \u8d39\u9a6c\u5c0f\u5b9a\u7406\u6c42\u9006\u5143&#xff1a;\u5f53\u6a21\u6570\u4e3a\u8d28\u6570\u65f6&#xff0c;a^(p\u22122) \u5373\u4e3a a \u7684\u9006\u5143&#xff08;\u914d\u5408\u5feb\u901f\u5e42&#xff09;&#xff0c;\u53ef\u4e0e exgcd \u6c42\u9006\u5143\u5bf9\u7167\u8bb0\u5fc6\u3002<\/li>\n<li>\u84dd\u6865\u676f\u4e0e\u8003\u7ea7\u771f\u9898\u98ce\u683c&#xff1a;\u84dd\u6865\u676f\u586b\u7a7a\u9898\u5e38\u7ed9 3~4 \u4e2a\u6a21\u6570\u8003\u300c\u7269\u4e0d\u77e5\u6570\u300d\u624b\u7b97&#xff1b;\u7535\u5b50\u5b66\u4f1a C\/C&#043;&#043; \u8003\u7ea7\u9ad8\u7b49\u7ea7\u628a\u300c\u540c\u4f59\u65b9\u7a0b\u300d\u7eb3\u5165\u6570\u8bba\u80fd\u529b\u70b9&#xff1b;\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u7b97\u6cd5\u5e94\u7528\u4e3b\u9898\u8d5b\u5219\u591a\u7528 CRT \u4f5c\u5efa\u6a21\u5b50\u4e32\u3002\u5efa\u8bae\u624b\u63a8\u4e00\u904d 23 \u4e0e 105 \u7684\u5173\u7cfb&#xff0c;\u5f7b\u5e95\u5403\u900f\u300c\u89e3 &#043; \u5468\u671f\u300d\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\u7f16\u7a0b\u7ade\u8d5b\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261118174036-6afde3146668e.jpg\" \/><\/p>\n<h3>\u4e03\u3001\u5c0f\u7ed3\u4e0e\u4e92\u52a8<\/h3>\n<p>\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u7684\u6838\u5fc3\u5c31\u4e24\u53e5\u8bdd&#xff1a;\u4e92\u8d28\u65f6\u7528\u300c\u6784\u9020\u9879\u300d\u5404\u7ba1\u4e00\u7ef4\u76f4\u63a5\u76f8\u52a0&#xff1b;\u4e0d\u4e92\u8d28\u65f6\u7528 exgcd \u9010\u6761\u5408\u5e76\u3001\u7528 gcd \u5224\u65e0\u89e3\u3001\u7528 lcm \u66f4\u65b0\u5468\u671f\u3002\u914d\u5957\u7684\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u8d1f\u8d23\u6c42\u9006\u5143&#xff0c;\u88f4\u8700\u5b9a\u7406\u8d1f\u8d23\u5224\u65e0\u89e3&#xff0c;__int128 \u8d1f\u8d23\u9632\u6ea2\u51fa\u2014\u2014\u628a\u8fd9\u51e0\u4e2a\u96f6\u4ef6\u88c5\u8d77\u6765&#xff0c;CRT \u5c31\u4ece\u300c\u53e4\u8001\u8c1c\u9898\u300d\u53d8\u6210\u4e86\u4e00\u5957\u53ef\u590d\u5236\u7684\u6a21\u677f\u3002<\/p>\n<p>\u672c\u6587 C&#043;&#043; \u4e0e Python \u4e24\u7248\u4ee3\u7801\u5747\u901a\u8fc7\u56fa\u5b9a\u6837\u4f8b&#xff08;23 \/ 23,105 \/ 5,12 \/ -1,-1&#xff09;\u6838\u9a8c&#xff0c;\u5e76\u5404\u81ea\u505a\u4e86\u6570\u4e07\u7ec4\u968f\u673a\u7528\u4f8b\u4e0e\u66b4\u529b\u679a\u4e3e\u5bf9\u62cd&#xff0c;\u7ed3\u679c 0 \u5931\u914d\u3002<\/p>\n<p>\u52a8\u624b\u7ec3\u4e00\u7ec3&#xff1a;\u5982\u679c\u628a\u6837\u4f8b 3 \u6539\u6210 4 2 \/ 6 4&#xff0c;\u8fd8\u6709\u89e3\u5417&#xff1f;\u5468\u671f\u53c8\u662f\u591a\u5c11&#xff1f;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u4e0b\u4f60\u7684\u63a8\u7406\u8fc7\u7a0b&#xff1b;\u60f3\u8981\u914d\u5957\u7ec3\u4e60\u9898\u7684\u5bb6\u957f\u540c\u5b66&#xff0c;\u6587\u672b\u8d44\u6599\u533a\u53ef\u81ea\u53d6\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u7bc7\u8bb2\u900f\u4e86\u300c\u7269\u4e0d\u77e5\u6570\u300d&#xff0c;\u70b9\u4e2a\u8d5e\u8ba9\u66f4\u591a\u5907\u8d5b\u7684\u540c\u5b66\u770b\u5230&#xff1b;\u5173\u6ce8\u6211&#xff0c;\u84dd\u6865\u676f \/ \u4fe1\u606f\u7d20\u517b\u5927\u8d5b \/ \u7535\u5b50\u5b66\u4f1a\u8003\u7ea7\u7684\u9ad8\u9891\u7b97\u6cd5\u8003\u70b9\u4f1a\u6301\u7eed\u66f4\u65b0\u3002<\/p>\n<hr \/>\n<h3>&#x1f4da; \u514d\u8d39\u5c11\u513f\u7f16\u7a0b\u8d44\u6599&#xff08;\u5938\u514b\u7f51\u76d8\u9886\u53d6&#xff09;<\/h3>\n<p>\u4ee5\u4e0b\u8d44\u6599\u6765\u81ea\u5938\u514b\u7f51\u76d8\u5206\u4eab&#xff0c;\u70b9\u51fb\u94fe\u63a5\u53ef\u76f4\u63a5\u4fdd\u5b58&#xff1b;\u82e5\u9700\u5728 App \u5185\u6253\u5f00&#xff0c;\u4e5f\u53ef\u590d\u5236\u4e0b\u65b9\u660e\u6587\u94fe\u63a5&#xff1a;<\/p>\n<li>\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u590d\u8d5b\u96c6\u8bad\u9898\u76eePython&amp;C&#043;&#043;.docx https:\/\/pan.quark.cn\/s\/93995d3cb150<\/li>\n<li>2024\u4fe1\u606f\u7d20\u517b-\u667a\u80fd\u7b97\u6cd5\u5e94\u7528\u6311\u6218\u8d5b-\u590d\u8d5b\u521d\u4e2d\u7ec4\u9898\u76ee7\u67087\u65e5.pdf https:\/\/pan.quark.cn\/s\/da97b5dbf75d<\/li>\n<li>Python\u80cc\u8bb0\u624b\u518c.pdf https:\/\/pan.quark.cn\/s\/7568ae9ca92b<\/li>\n<li>Python\u8bfe\u7a0b https:\/\/pan.quark.cn\/s\/a94bf02d00c6<\/li>\n<li>2024\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u56fe\u5f62\u5316\u590d\u8d5b\u96c6\u8bad\u9898\u7b54\u68483-9 https:\/\/pan.quark.cn\/s\/6ccab7ec3cbc<\/li>\n<li>2025\u5e7403\u6708\u4efd\u7535\u5b50\u5b66\u4f1a\u8003\u7ea7\u771f\u9898 https:\/\/pan.quark.cn\/s\/4403c4228912<\/li>\n<li>2025\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u8d5b\u9879\u8bf4\u660e https:\/\/pan.quark.cn\/s\/d9d0df4a9f29<\/li>\n<li>\u9752\u5c11\u513f\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u7f16\u7a0b\u8d44\u6599 https:\/\/pan.quark.cn\/s\/4ab6bd83be8a<\/li>\n<p>\u8d44\u6599\u6301\u7eed\u66f4\u65b0&#xff0c;\u5173\u6ce8\u83b7\u53d6\u6700\u65b0\u5206\u4eab\u3002<\/p>\n<p>            <span id=\"quality-guide-article-end\" aria-hidden=\"true\" style=\"display:block;height:1px;margin-bottom:-1px\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdb\u5165\u5341\u4e00\u6708&#xff0c;\u9752\u5c11\u513f\u4fe1\u606f\u5b66\u8d5b\u4e8b\u8fce\u6765\u5bc6\u96c6\u5907\u8003\u671f&#xff0c;\u51e0\u5927\u6807\u5fd7\u6027\u6bd4\u8d5b\u7684\u65f6\u95f4\u8282\u70b9\u90fd\u5df2\u660e\u786e\u3002<br \/>\n\u7b2c\u5341\u516b\u5c4a\u84dd\u6865\u676f&#xff08;\u8f6f\u4ef6\u8d5b C\/C \u7a0b\u5e8f\u8bbe\u8ba1\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1\u4e3a\u6838\u5fc3\u79d1\u76ee&#xff09;\u62a5\u540d 2026-10-08 10:00 \u5f00\u542f\u30012026-12-18 14:00 \u622a\u6b62&#xff0c;\u7701\u8d5b \/ \u5168\u56fd\u9009\u62d4\u8d5b\u5b9a\u4e8e 2027 \u5e74 4 \u6708 10 \u65e5&#xff08;C\/C\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1 9:00\u201413:00&#xff09;&#xff0c;\u5168\u56fd\u603b\u51b3\u8d5b<\/p>\n","protected":false},"author":2,"featured_media":124439,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12304,55,81,4651,427],"topic":[],"class_list":["post-124441","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-bfs","tag-c","tag-python","tag-4651","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/124441.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fdb\u5165\u5341\u4e00\u6708&#xff0c;\u9752\u5c11\u513f\u4fe1\u606f\u5b66\u8d5b\u4e8b\u8fce\u6765\u5bc6\u96c6\u5907\u8003\u671f&#xff0c;\u51e0\u5927\u6807\u5fd7\u6027\u6bd4\u8d5b\u7684\u65f6\u95f4\u8282\u70b9\u90fd\u5df2\u660e\u786e\u3002 \u7b2c\u5341\u516b\u5c4a\u84dd\u6865\u676f&#xff08;\u8f6f\u4ef6\u8d5b C\/C \u7a0b\u5e8f\u8bbe\u8ba1\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1\u4e3a\u6838\u5fc3\u79d1\u76ee&#xff09;\u62a5\u540d 2026-10-08 10:00 \u5f00\u542f\u30012026-12-18 14:00 \u622a\u6b62&#xff0c;\u7701\u8d5b \/ \u5168\u56fd\u9009\u62d4\u8d5b\u5b9a\u4e8e 2027 \u5e74 4 \u6708 10 \u65e5&#xff08;C\/C\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1 9:00\u201413:00&#xff09;&#xff0c;\u5168\u56fd\u603b\u51b3\u8d5b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/124441.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T17:40:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261118174036-6afde31421b96.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124441.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/124441.html\",\"name\":\"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-18T17:40:37+00:00\",\"dateModified\":\"2026-11-18T17:40:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/124441.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/124441.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124441.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/124441.html","og_locale":"zh_CN","og_type":"article","og_title":"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fdb\u5165\u5341\u4e00\u6708&#xff0c;\u9752\u5c11\u513f\u4fe1\u606f\u5b66\u8d5b\u4e8b\u8fce\u6765\u5bc6\u96c6\u5907\u8003\u671f&#xff0c;\u51e0\u5927\u6807\u5fd7\u6027\u6bd4\u8d5b\u7684\u65f6\u95f4\u8282\u70b9\u90fd\u5df2\u660e\u786e\u3002 \u7b2c\u5341\u516b\u5c4a\u84dd\u6865\u676f&#xff08;\u8f6f\u4ef6\u8d5b C\/C \u7a0b\u5e8f\u8bbe\u8ba1\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1\u4e3a\u6838\u5fc3\u79d1\u76ee&#xff09;\u62a5\u540d 2026-10-08 10:00 \u5f00\u542f\u30012026-12-18 14:00 \u622a\u6b62&#xff0c;\u7701\u8d5b \/ \u5168\u56fd\u9009\u62d4\u8d5b\u5b9a\u4e8e 2027 \u5e74 4 \u6708 10 \u65e5&#xff08;C\/C\u3001Python \u7a0b\u5e8f\u8bbe\u8ba1 9:00\u201413:00&#xff09;&#xff0c;\u5168\u56fd\u603b\u51b3\u8d5b","og_url":"https:\/\/www.wsisp.com\/helps\/124441.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-18T17:40:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261118174036-6afde31421b96.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/124441.html","url":"https:\/\/www.wsisp.com\/helps\/124441.html","name":"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-18T17:40:37+00:00","dateModified":"2026-11-18T17:40:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/124441.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/124441.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/124441.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u84dd\u6865\u676f\u00b7\u5168\u56fd\u9752\u5c11\u5e74\u4fe1\u606f\u7d20\u517b\u5927\u8d5b\u00b7\u7535\u5b50\u5b66\u4f1aPython\/C++\u8003\u7ea7\uff1a\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=124441"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124441\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/124439"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=124441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=124441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=124441"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=124441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}