{"id":113998,"date":"2026-10-08T07:50:03","date_gmt":"2026-10-07T23:50:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/113998.html"},"modified":"2026-10-08T07:50:03","modified_gmt":"2026-10-07T23:50:03","slug":"%e3%80%90%e4%be%8b-5%e3%80%91strange-way-to-express-integers%ef%bc%88%e4%bf%a1%e6%81%af%e5%ad%a6%e5%a5%a5%e8%b5%9b%e4%b8%80%e6%9c%ac%e9%80%9a-p1635%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/113998.html","title":{"rendered":"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09"},"content":{"rendered":"<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u9898\u76ee\u63cf\u8ff0\u3011<\/span><\/h4>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u539f\u9898\u6765\u81ea&#xff1a;POJ 2891<\/span><\/span><\/p>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u7ed9\u5b9a\u00a02n\u00a0\u4e2a\u6b63\u6574\u6570\u00a0a1,a2,\u22ef,an\u548c\u00a0m1,m2,\u22ef,m[n] &#xff0c;\u6c42\u4e00\u4e2a\u6700\u5c0f\u7684\u6b63\u6574\u6570\u00a0x&#xff0c;\u6ee1\u8db3\u00a0\u2200i\u2208[1,n],x\u2261ai(mod m[i])&#xff0c;\u6216\u8005\u7ed9\u51fa\u65e0\u89e3\u3002<\/span><\/span><\/p>\n<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u8f93\u5165\u3011<\/span><\/h4>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u591a\u7ec4\u6570\u636e\u3002<\/span><\/span><\/p>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u6bcf\u7ec4\u6570\u636e\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570\u00a0n&#xff1b;<\/span><\/span><\/p>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u63a5\u4e0b\u6765\u00a0n\u00a0\u884c&#xff0c;\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\u00a0mi,ai\u00a0\u3002<\/span><\/span><\/p>\n<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u8f93\u51fa\u3011<\/span><\/h4>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u5bf9\u4e8e\u6bcf\u7ec4\u6570\u636e&#xff0c;\u82e5\u65e0\u89e3&#xff0c;\u8f93\u51fa\u00a0\u22121&#xff1b;\u5426\u5219\u8f93\u51fa\u4e00\u4e2a\u975e\u8d1f\u6574\u6570&#xff0c;\u82e5\u6709\u591a\u89e3&#xff0c;\u8f93\u51fa\u6700\u5c0f\u7684\u6ee1\u8db3\u6761\u4ef6\u7684\u7b54\u6848\u3002<\/span><\/span><\/p>\n<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u8f93\u5165\u6837\u4f8b\u3011<\/span><\/h4>\n<p><span style=\"background-color:#f1f1f1\">2<br \/>\n8 7<br \/>\n11 9<\/span><\/p>\n<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u8f93\u51fa\u6837\u4f8b\u3011<\/span><\/h4>\n<p><span style=\"background-color:#f1f1f1\">31<\/span><\/p>\n<h4 style=\"text-align:left\"><span style=\"color:darkblue\">\u3010\u63d0\u793a\u3011<\/span><\/h4>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u6570\u636e\u8303\u56f4\u4e0e\u63d0\u793a&#xff1a;<\/span><\/span><\/p>\n<p><span style=\"background-color:#fcfcfc\"><span style=\"color:#000000\">\u5bf9\u4e8e\u5168\u90e8\u6570\u636e&#xff0c;\u6240\u6709\u7684\u8f93\u5165\u90fd\u662f\u975e\u8d1f\u7684&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u7528\u00a064\u00a0\u4f4d\u6709\u7b26\u53f7\u6574\u6570\u8868\u793a\u3002\u4fdd\u8bc1\u00a01\u2264n\u226410^5,m[i]&gt;a[i] \u3002<\/span><\/span><\/p>\n<\/p>\n<h4>1. \u9898\u610f\u8f6c\u6362<\/h4>\n<p>\u7528\u4e00\u53e5\u8bdd\u5265\u79bb\u9898\u76ee\u7684\u80cc\u666f\u6545\u4e8b&#xff0c;\u8fd9\u9053\u9898\u672c\u8d28\u4e0a\u662f\u5728\u6c42&#xff1a;\u7ed9\u5b9a n \u4e2a\u7ebf\u6027\u540c\u4f59\u65b9\u7a0b x \u2261 a[i]\u200b (mod m[i]\u200b)&#xff0c;\u5728\u4e0d\u4fdd\u8bc1\u6a21\u6570m[i]\u4e24\u4e24\u4e92\u8d28\u7684\u60c5\u51b5\u4e0b&#xff0c;\u6c42\u51fa\u6700\u5c0f\u7684\u6b63\u6574\u6570\u89e3 x\u3002 \u8fd9\u6b63\u662f\u6570\u8bba\u4e2d\u5927\u540d\u9f0e\u9f0e\u7684\u7ec8\u6781\u6b66\u5668\u2014\u2014\u6269\u5c55\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406&#xff08;EXCRT&#xff09; \u7684\u6807\u51c6\u6a21\u677f\u9898\u3002\u8fd9\u9053\u9898\u662f\u6570\u8bba\u8fdb\u9636\u9636\u6bb5\u7684\u7edd\u4f73\u8bd5\u91d1\u77f3\u3002<\/p>\n<h4>2. \u601d\u8003\u8fc7\u7a0b\u4e0e\u89e3\u9898\u601d\u8def<\/h4>\n<p>\u9762\u5bf9\u65b9\u7a0b\u7ec4&#xff0c;\u6211\u4eec\u7684\u5927\u8111\u901a\u5e38\u4f1a\u7ecf\u5386\u4ee5\u4e0b\u8fed\u4ee3\u8fc7\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7b2c\u4e00\u76f4\u89c9&#xff1a;\u66b4\u529b\u679a\u4e3e \u6700\u6734\u7d20\u7684\u60f3\u6cd5\u662f&#xff0c;\u4ece x&#061;a[1]\u200b \u5f00\u59cb&#xff0c;\u6bcf\u6b21\u52a0\u4e0a m[1]\u200b&#xff0c;\u7136\u540e\u53bb\u8bd5\u662f\u5426\u6ee1\u8db3\u7b2c\u4e8c\u4e2a\u65b9\u7a0b x\u2261a[2]\u200b(mod m[2]\u200b)&#xff0c;\u6ee1\u8db3\u540e\u518d\u53bb\u8bd5\u7b2c\u4e09\u4e2a\u2026\u2026 \u4e3a\u4ec0\u4e48\u4f1a\u8d85\u65f6&#xff1f; \u9898\u76ee\u4e2d n\u226410^5&#xff0c;\u6a21\u6570\u867d\u7136\u9898\u76ee\u8bf4 64 \u4f4d\u6574\u578b\u88c5\u5f97\u4e0b&#xff0c;\u4f46\u5168\u90e8\u4e58\u8d77\u6765&#xff08;\u5373\u603b\u5468\u671f&#xff09;\u662f\u4e00\u4e2a\u5929\u6587\u6570\u5b57\u3002\u9760\u52a0\u6cd5\u53bb\u904d\u5386\u72b6\u6001\u7a7a\u95f4&#xff0c;\u8bc4\u6d4b\u673a\u8dd1\u5230\u5b87\u5b99\u6bc1\u706d\u4e5f\u7b97\u4e0d\u5b8c\u3002<\/p>\n<\/li>\n<li>\n<p>\u964d\u7ef4\u6253\u51fb&#xff1a;\u4e24\u4e24\u5408\u5e76&#xff0c;\u5316\u7e41\u4e3a\u7b80 \u65e2\u7136\u4e0d\u80fd\u5b8f\u89c2\u901a\u6740&#xff0c;\u6211\u4eec\u5c31\u201c\u5fae\u89c2\u8695\u98df\u201d\u3002\u5047\u8bbe\u6211\u4eec\u5df2\u7ecf\u5904\u7406\u5b8c\u4e86\u524d i\u22121 \u4e2a\u65b9\u7a0b&#xff0c;\u6c42\u51fa\u4e86\u4e00\u4e2a\u80fd\u540c\u65f6\u6ee1\u8db3\u5b83\u4eec\u7684\u7279\u89e3 ans\u3002\u540c\u65f6&#xff0c;\u524d i\u22121 \u4e2a\u65b9\u7a0b\u4f1a\u5f62\u6210\u4e00\u4e2a\u516c\u5171\u5927\u5468\u671f lcm\u3002 \u90a3\u4e48&#xff0c;\u524d i\u22121 \u4e2a\u65b9\u7a0b\u7684\u201c\u901a\u89e3\u201d\u5c31\u53ef\u4ee5\u5199\u6210&#xff1a;x&#061;ans&#043;t\u22c5lcm &#xff08;t \u662f\u672a\u77e5\u7684\u6574\u6570\u6b65\u6570&#xff09;\u3002<\/p>\n<p>\u73b0\u5728&#xff0c;\u6211\u4eec\u8981\u8ba9\u8fd9\u4e2a\u901a\u89e3\u4e5f\u6ee1\u8db3\u7b2c i \u4e2a\u65b9\u7a0b&#xff1a;<\/p>\n<p>ans&#043;t\u22c5lcm\u2261a[i]\u200b (mod m[i]\u200b)<\/p>\n<p>\u7a0d\u5fae\u79fb\u4e00\u4e0b\u9879&#xff0c;\u628a\u672a\u77e5\u6570\u653e\u5de6\u8fb9&#xff0c;\u5df2\u77e5\u5e38\u6570\u653e\u53f3\u8fb9&#xff1a;<\/p>\n<p>t\u22c5lcm\u2212y\u22c5m[i]\u200b&#061;a[i]\u200b\u2212ans<\/p>\n<p>\u4ed4\u7ec6\u89c2\u5bdf&#xff0c;\u8fd9\u4e0d\u5c31\u662f\u4e00\u4e2a\u6807\u51c6\u7684\u4e8c\u5143\u4e00\u6b21\u4e0d\u5b9a\u65b9\u7a0b Ax&#043;By&#061;C \u5417&#xff1f;\u5176\u4e2d A&#061;lcm&#xff0c;B&#061;m[i\u200b]&#xff0c;C&#061;a[i]\u200b\u2212ans\u3002\u672a\u77e5\u6570\u662f\u6211\u4eec\u60f3\u6c42\u7684\u6b65\u6570 t&#xff08;\u5bf9\u5e94\u4ee3\u7801\u91cc\u7684 x0\u200b&#xff09;\u3002 \u8ff7\u96fe\u5f7b\u5e95\u6563\u5f00\u2014\u2014\u76f4\u63a5\u638f\u51fa\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u89e3\u5373\u53ef\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u6837\u4f8b\u63a8\u6f14<\/h4>\n<p>\u6807\u7a0b\u7684\u6838\u5fc3\u7b97\u6cd5\u662f exgcd\u00a0&#043; \u8fed\u4ee3\u5408\u5e76\u3002 \u6211\u4eec\u7ef4\u62a4\u4e24\u4e2a\u6838\u5fc3\u53d8\u91cf&#xff1a;<\/p>\n<li>\n<p>ans&#xff1a;\u5f53\u524d\u5df2\u7ecf\u5408\u5e76\u6210\u529f\u7684\u6240\u6709\u65b9\u7a0b\u7684\u6700\u5c0f\u6b63\u6574\u6570\u89e3&#xff08;\u57fa\u5e95&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>lcm&#xff1a;\u5f53\u524d\u5df2\u7ecf\u5408\u5e76\u6210\u529f\u7684\u6240\u6709\u65b9\u7a0b\u7684\u6700\u5c0f\u516c\u500d\u6570&#xff08;\u5927\u5468\u671f&#xff09;\u3002<\/p>\n<\/li>\n<p>\u6838\u5fc3\u72b6\u6001\u8f6c\u79fb\u65b9\u7a0b\u5f0f&#xff1a;<\/p>\n<li>\n<p>\u7b97\u5e38\u6570&#xff1a;C&#061;( (a[i]\u200b\u2212ans) (mod m[i]\u200b) &#043; m[i]\u200b) (mod m[i]\u200b)<\/p>\n<\/li>\n<li>\n<p>\u6269\u6b27\u89e3\u57fa\u5e95&#xff1a;lcm\u22c5x0\u200b&#043;m[i]\u200b\u22c5y0\u200b&#061;d&#061;gcd(lcm,m[i]\u200b)<\/p>\n<\/li>\n<li>\n<p>\u5224\u65e0\u89e3&#xff1a;\u6839\u636e\u88f4\u8700\u5b9a\u7406&#xff0c;\u5982\u679c C \u4e0d\u80fd\u88ab d \u6574\u9664&#xff0c;\u76f4\u63a5 return -1\u3002<\/p>\n<\/li>\n<li>\n<p>\u6269\u500d\u6570\u6c42\u771f\u5b9e\u6b65\u957f&#xff1a;t&#061;(x0\u200b\u22c5C\/d)(mod m[i]\/d)<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u5168\u5c40\u89e3&#xff1a;ans&#061;(ans&#043;t\u22c5lcm) (mod next_lcm)<\/p>\n<\/li>\n<p>\u6781\u7b80\u6570\u636e\u624b\u73a9\u63a8\u6f14&#xff08;\u5e26\u5165\u6837\u4f8b\u6570\u636e&#xff09;&#xff1a; \u65b9\u7a0b 1&#xff1a;x\u22617 (mod 8) \u65b9\u7a0b 2&#xff1a;x\u22619 (mod 11)<\/p>\n<ul>\n<li>\n<p>\u521d\u59cb\u72b6\u6001&#xff1a;ans &#061; 7, lcm &#061; 8<\/p>\n<\/li>\n<li>\n<p>\u63a5\u5165\u65b9\u7a0b 2&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5e38\u6570 C&#061;9\u22127&#061;2\u3002<\/p>\n<\/li>\n<li>\n<p>\u8c03\u7528 exgcd(8, 11, x0, y0)&#xff1a;\u7b97\u51fa 8\u22c5(\u22124)&#043;11\u22c53&#061;1\u3002\u5f97\u51fa d&#061;1, x0&#061;\u22124\u3002<\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97\u5c40\u90e8\u5468\u671f&#xff1a;mod&#061;m[i]\u200b\/d&#061;11\/1&#061;11\u3002<\/p>\n<\/li>\n<li>\n<p>\u6b65\u6570\u6269\u5927\u5e76\u8f6c\u6b63&#xff1a;x0&#061;(\u22124\u00d72)(mod 11)\u2261\u22128\u22613 (mod 11)\u3002\u6240\u4ee5\u6211\u4eec\u8981\u8de8 3 \u6b65\u3002<\/p>\n<\/li>\n<li>\n<p>\u8ba1\u7b97\u4e0b\u4e00\u8f6e\u603b\u5468\u671f&#xff1a;next_lcm&#061;8\/1\u00d711&#061;88\u3002<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u5168\u5c40\u89e3&#xff1a;ans&#061;(7&#043;3\u00d78) (mod 88)&#061;31\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7ed3\u679c&#xff1a;\u8f93\u51fa 31&#xff0c;\u4e0e\u6837\u4f8b\u5b8c\u7f8e\u5951\u5408\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>4. \u65f6\u7a7a\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\n<p>\u65f6\u95f4\u590d\u6742\u5ea6&#xff1a;O(nlog(max M))\u3002\u7b97\u6cd5\u5171\u6709 n \u8f6e\u5faa\u73af&#xff0c;\u6bcf\u6b21\u5faa\u73af\u6267\u884c\u4e00\u6b21 exgcd\u3002\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u662f\u5bf9\u6570\u7ea7\u522b\u7684&#xff0c;\u6574\u4f53\u8dd1\u6ee1 10^5 \u6b21\u5927\u7ea6\u4ec5\u9700\u5341\u51e0\u6beb\u79d2&#xff0c;\u5bf9\u4e8e 1s \u7684\u65f6\u9650\u7ef0\u7ef0\u6709\u4f59\u3002<\/p>\n<\/li>\n<li>\n<p>\u7a7a\u95f4\u590d\u6742\u5ea6&#xff1a;O(n)\u3002\u4ec5\u9700\u8981\u5f00\u4e24\u4e2a\u957f\u5ea6\u4e3a 100010 \u7684 long long \u6570\u7ec4\u5b58\u50a8\u8f93\u5165\u7684 a \u548c m&#xff0c;\u5185\u5b58\u6d88\u8017\u4e0d\u8db3 2\u00a0MB\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>5. \u6613\u9519\u603b\u7ed3<\/h4>\n<p>\u5f88\u591a\u540c\u5b66\u5728\u624b\u63a8\u6269\u5c55\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u65f6&#xff0c;\u7ecf\u5e38\u88ab\u4ee3\u7801\u91cc\u6ee1\u5929\u98de\u7684\u53d6\u6a21\u641e\u6655\u3002\u4ec0\u4e48\u65f6\u5019\u8be5 % mod&#xff0c;\u4ec0\u4e48\u65f6\u5019\u8be5 % lcm&#xff1f; \u8fd9\u662f\u4e00\u4e2a\u6781\u5176\u654f\u9510\u4e14\u76f4\u51fb\u672c\u8d28\u7684\u95ee\u9898&#xff01;\u8fd9\u4e24\u7c7b\u53d6\u6a21\u7684\u4f5c\u7528\u5bf9\u8c61\u5b8c\u5168\u4e0d\u540c&#xff1a;<\/p>\n<h5>\u7075\u9b42\u62f7\u95ee 1&#xff1a;\u4e3a\u4ec0\u4e48\u6c42 x0\u200b \u65f6\u8981 % mod&#xff1f;<\/h5>\n<p>% mod \u662f\u7528\u6765\u7ea6\u675f\u500d\u6570&#xff08;\u7cfb\u6570 x0&#xff09;\u7684\u3002 \u5728\u7b2c i \u8f6e\u65f6&#xff0c;\u4e3a\u4e86\u8ba9\u65b0\u65b9\u7a0b\u6210\u7acb&#xff0c;\u6211\u4eec\u79fb\u9879\u5f97\u5230\u4e86\u65b9\u7a0b&#xff1a;<\/p>\n<p>x0\u200b\u22c5lcm&#043;y0\u22c5m[i]\u200b&#061;c<\/p>\n<p>\u6b64\u65f6&#xff0c;\u6211\u4eec\u6c42\u51fa\u4e86\u6700\u5927\u516c\u7ea6\u6570 d&#061;gcd(lcm,m[i]\u200b)\u3002\u628a\u65b9\u7a0b\u4e24\u8fb9\u540c\u65f6\u9664\u4ee5 d&#xff0c;\u8f6c\u6362\u56de\u540c\u4f59\u65b9\u7a0b&#xff1a;<\/p>\n<p>x0\u22c5lcm\/d\u2261c\/d\u200b (mod m[i]\/d\u200b\u200b)<\/p>\n<p>\u5728\u8fd9\u4e2a\u5316\u7b80\u540e\u7684\u65b9\u7a0b\u91cc&#xff0c;x0 \u7684\u5468\u671f&#xff08;\u4e5f\u5c31\u662f\u65b0\u7684\u6a21\u6570&#xff09;\u53d8\u6210\u4e86m[i]\/d\u3002\u8fd9\u6b63\u662f\u4ee3\u7801\u4e2d ll mod &#061; m[i] \/ d; \u7684\u7531\u6765\u3002\u6211\u4eec\u5bf9 x0\u200b \u8fdb\u884c % mod \u64cd\u4f5c&#xff0c;\u662f\u4e3a\u4e86\u5728\u5c40\u90e8\u65b9\u7a0b\u91cc\u627e\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u6700\u5c0f\u6b63\u500d\u6570&#xff0c;\u9632\u6b62 x0 \u53d8\u5f97\u65e0\u7a77\u5927\u5bfc\u81f4\u540e\u7eed\u4e58\u6cd5\u6ea2\u51fa\u3002<\/p>\n<h5>\u7075\u9b42\u62f7\u95ee 2&#xff1a;\u4e3a\u4ec0\u4e48\u66f4\u65b0\u7b54\u6848\u65f6\u8981 % lcm (\u6216 % nextlcm)&#xff1f;<\/h5>\n<p>% lcm \u662f\u7528\u6765\u7ea6\u675f\u771f\u5b9e\u7b54\u6848&#xff08;ans&#xff09;\u7684\u3002 \u5f53\u6211\u4eec\u6c42\u51fa\u4e86\u6700\u5c0f\u6b63\u500d\u6570 x0\u00a0\u540e&#xff0c;\u5c31\u7b97\u51fa\u4e86\u6ee1\u8db3\u524d i \u4e2a\u65b9\u7a0b\u7684\u65b0\u89e3&#xff1a;ans[new\u200b]&#061;ans&#043;x0\u200b\u22c5lcm\u3002 \u4f46\u8fd9\u53ea\u662f\u65e0\u7a77\u591a\u4e2a\u5408\u6cd5\u89e3\u4e2d\u7684\u4e00\u4e2a\u3002\u524d i \u4e2a\u65b9\u7a0b\u5408\u5e76\u540e&#xff0c;\u5b83\u4eec\u4f1a\u6709\u4e00\u4e2a\u5168\u5c40\u7684\u603b\u5faa\u73af\u5468\u671f\u3002\u8fd9\u4e2a\u5468\u671f\u5c31\u662f\u539f\u672c\u7684 lcm \u548c\u5f53\u524d\u6a21\u6570 mi\u200b \u7684\u6700\u5c0f\u516c\u500d\u6570&#xff0c;\u5373&#xff1a;<\/p>\n<p>nextlcm&#061;lcm\u22c5m[i]\/d\u200b\u200b<\/p>\n<p>\u56e0\u4e3a\u9898\u76ee\u8981\u6c42\u7684\u662f\u6700\u5c0f\u6b63\u6574\u6570\u89e3&#xff0c;\u6240\u4ee5\u65e0\u8bba ans[new]\u200b\u53d8\u5230\u591a\u5927&#xff0c;\u5b83\u76f8\u5bf9\u4e8e\u65b0\u7684\u5927\u5468\u671f nextlcm \u7684\u4f59\u6570\u624d\u662f\u6700\u5c0f\u7684\u5408\u6cd5\u7b54\u6848\u3002<\/p>\n<p>\u6838\u5fc3\u603b\u7ed3\u5bf9\u7167\u8868&#xff1a;<\/p>\n<table>\n<tr>\u53d8\u91cf\u7269\u7406\u610f\u4e49\u6240\u5728\u7684\u65b9\u7a0b\u7a7a\u95f4\u5bf9\u5e94\u7684\u6a21\u6570\u4ee3\u7801\u4e2d\u7684\u53d8\u91cf\u540d<\/tr>\n<tbody>\n<tr>\n<td>x0\u200b<\/td>\n<td>\u9700\u8981\u8de8\u8d8a\u591a\u5c11\u6b65\u624d\u80fd\u6ee1\u8db3\u5f53\u524d\u65b9\u7a0b<\/td>\n<td>\u5c40\u90e8\u7684\u500d\u6570\u7a7a\u95f4<\/td>\n<td>m[i]\u200b\/d<\/td>\n<td>mod<\/td>\n<\/tr>\n<tr>\n<td>ans<\/td>\n<td>\u6ee1\u8db3\u5f53\u524d\u6240\u6709\u65b9\u7a0b\u7684\u5177\u4f53\u6570\u503c\u89e3<\/td>\n<td>\u5168\u5c40\u7684\u771f\u5b9e\u503c\u7a7a\u95f4<\/td>\n<td>lcm \u4e0e m[i]\u200b \u7684\u6700\u5c0f\u516c\u500d\u6570<\/td>\n<td>nextlcm \u6216\u66f4\u65b0\u540e\u7684 lcm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a;\u7b97\u672a\u77e5\u6570 x0 \u7528\u5c0f\u6a21\u6570 (mod)&#xff0c;\u7b97\u5927\u7b54\u6848 ans \u7528\u5927\u6a21\u6570 (lcm)\u3002<\/p>\n<h5>\u5176\u4ed6\u6613\u9519\u70b9&#xff1a;<\/h5>\n<ul>\n<li>\n<p>\u591a\u7ec4\u6570\u636e\u4e0e EOF \u8bfb\u5165&#xff1a;\u9898\u76ee\u660e\u786e\u8bf4\u660e\u201c\u591a\u7ec4\u6570\u636e\u201d&#xff0c;\u5fc5\u987b\u5199 while(cin &gt;&gt; n)\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f93\u5165\u987a\u5e8f\u9677\u9631&#xff1a;POJ 2891 \u7684\u8f93\u5165\u683c\u5f0f\u662f\u5148\u7ed9\u6a21\u6570 m[i]\u200b&#xff0c;\u518d\u7ed9\u4f59\u6570 a[i]\u200b\u3002\u76f4\u63a5\u8bfb\u9519\u4f4d\u4f1a\u5bfc\u81f4\u5e95\u5c42\u6269\u6b27\u5f7b\u5e95\u9519\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u6ea2\u51fa\u4e0e\u00a0__int128&#xff1a;\u5927\u6574\u6570\u76f8\u4e58\u5982 x0*lcm \u5728\u6781\u7aef\u6570\u636e\u4e0b\u53ef\u80fd\u4f1a\u6491\u7206long long&#xff0c;\u5efa\u8bae\u5957\u4e0a __int128\u00a0&#xff0c;\u4f46\u662f\u4e0d\u5199\u4e5f\u80fd\u8fc7\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>6. \u5b8c\u6574\u4ee3\u7801<\/h4>\n<p>\/\/\u56e0\u4e3a\u4e0d\u786e\u5b9a\u6a21\u6570\u662f\u5426\u4e92\u8d28 \u6240\u4ee5\u4f7f\u7528\u6269\u5c55\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406<br \/>\n#include &lt;iostream&gt;<br \/>\nusing namespace std;<br \/>\nint n;<br \/>\nlong long a[100010];\/\/a[i]\u4e0em[i]\u5bf9\u5e94&#xff0c;\u4ee3\u8868\u7b2cm\u4e2a\u5f0f\u5b50\u7684\u6a21\u6570\u60c5\u51b5\u4e0b\u6240\u5bf9\u5e94\u4f59\u6570<br \/>\nlong long m[100010];\/\/m[i]\u4ee3\u8868\u7b2ci\u4e2a\u5f0f\u5b50\u7684\u6a21\u6570<br \/>\ntypedef long long ll;<\/p>\n<p>\/\/\u6269\u5c55\u6b27\u51e0\u91cc\u5f97<br \/>\n\/\/\u6c42ax&#043;by&#061;gcd(a,b)\u7684\u7279\u89e3 \u5e76\u8fd4\u56de\u6700\u5927\u516c\u7ea6\u6570d<br \/>\nll exgcd(ll a,ll b,ll &amp;x_,ll &amp;y_){<br \/>\n    if(b&#061;&#061;0){<br \/>\n        x_&#061;1;<br \/>\n        y_&#061;0;<br \/>\n        return a;<br \/>\n    }<br \/>\n    ll d&#061;exgcd(b,a%b,x_,y_);<br \/>\n    ll tmp&#061;x_;<br \/>\n    x_&#061;y_;<br \/>\n    y_&#061;tmp-(a\/b)*y_;<br \/>\n    return d;<br \/>\n}<\/p>\n<p>\/\/\u6269\u5c55\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406<br \/>\nll excrt(){<br \/>\n    ll ans&#061;a[1];\/\/\u6ee1\u8db3\u7b2c\u4e00\u4e2a\u5f0f\u5b50\u7684\u7ed3\u679c&#xff08;\u89e3&#xff09;<br \/>\n    \/\/lcm\u4ee3\u8868\u5f53\u524d\u6240\u6709\u5408\u5e76\u65b9\u7a0b\u7684\u6700\u5c0f\u516c\u500d\u6570 \u8fd9\u91cc\u662f\u7b2c\u4e00\u4e2a\u65b9\u7a0b\u7684\u6a21\u6570<br \/>\n    ll lcm&#061;m[1];<\/p>\n<p>    \/\/\u6bcf\u4e00\u8f6e\u7684\u65b9\u7a0b\u90fd\u8981\u6ee1\u8db3<br \/>\n    for(int i&#061;2;i&lt;&#061;n;i&#043;&#043;){<br \/>\n        ll x0,y0;<br \/>\n        \/\/\u8981\u524d\u4e00\u8f6e\u7684\u5f0f\u5b50\u6ee1\u8db3\u540e\u4e00\u8f6e\u7684\u8981\u6c42 \u5219\u4ee3\u8868\u7b2ci\u8f6e\u7684\u76ee\u6807\u65b9\u7a0b\u4e3a<br \/>\n        \/\/ans&#043;x0*lcm\u2261a[i] (mod m[i]) &#xff08;x0\u662f\u8fd9\u4e00\u8f6e\u65b0\u8bbe\u7684\u672a\u77e5\u91cf \u4ee3\u8868\u52a0x0\u4e2alcm\u53ef\u4ee5\u6ee1\u8db3\u8981\u6c42&#xff09;<br \/>\n        \/\/\u79fb\u9879 lcm*x0&#043;m[i]*y0&#061;a[i]-ans (y0\u662f\u8fd9\u4e00\u8f6e\u65b0\u8bbe\u7684\u672a\u77e5\u91cf)<br \/>\n        \/\/\u521b\u5efa\u4e00\u4e2a\u53d8\u91cfc&#061;a[i]-ans<br \/>\n        ll c&#061;a[i]-ans;<br \/>\n        \/\/c\u6709\u53ef\u80fd\u4e3a\u8d1f\u6570 \u628ac\u53d6\u6b63<br \/>\n        c&#061;(c%m[i]&#043;m[i])%m[i];<br \/>\n        \/\/\u6269\u5c55\u6b27\u51e0\u91cc\u5f97\u6c42\u89e3d\u548cx0 lcm*x0&#043;m[i]*y0&#061;d<br \/>\n        ll d&#061;exgcd(lcm,m[i],x0,y0);<\/p>\n<p>        \/\/\u6839\u636e\u88f4\u8700\u5b9a\u7406 \u5982\u679cc\u4e0d\u80fd\u88abd\u6574\u9664&#xff0c;\u5219\u65e0\u89e3<br \/>\n        if(c%d!&#061;0) return -1;<\/p>\n<p>        \/\/\u7b97\u51fa\u8981\u6269\u5927\u7684\u500d\u6570 \u56e0\u4e3aexgcd\u6c42\u7684\u662flcm*x0&#043;m[i]*y0&#061;d\u7684\u60c5\u51b5<br \/>\n        \/\/\u6c42lcm*x0&#043;m[i]*y0&#061;c x0 y0\u80af\u5b9a\u8981\u76f8\u5e94\u6269\u5927<br \/>\n        ll times&#061;c\/d;<\/p>\n<p>        \/\/\u6a21\u6570\u8981\u76f8\u5e94\u53d8\u5316 \u7b49\u5f0f\u4e24\u8fb9\u540c\u9664\u4ee5d\u540e \u5c40\u90e8\u8fd0\u7b97\u7684\u5468\u671f\u53d8\u4e3am[i]\/d<br \/>\n        ll mod&#061;m[i]\/d;<\/p>\n<p>        \/\/\u628ax0\u4ece\u53ef\u80fd\u7684\u8d1f\u6570\u5148\u8f6c\u5316\u6210\u767e\u5206\u767e\u7684\u6b63\u6570<br \/>\n        x0&#061;(x0%mod&#043;mod)%mod;<\/p>\n<p>        \/\/\u7b49\u6bd4\u4f8b\u6269\u5927x0<br \/>\n        x0&#061;(x0*times)%mod;<\/p>\n<p>        \/\/\u4e0b\u4e00\u8f6e\u603b\u5468\u671f<br \/>\n        ll nextlcm&#061;lcm\/d*m[i];<\/p>\n<p>        \/\/\u8fd9\u4e00\u8f6e\u7684\u89e3<br \/>\n        \/\/\u66f4\u65b0\u5168\u5c40\u7b54\u6848&#061;\u65e7\u7b54\u6848&#043;\u8de8\u8d8a\u7684\u6b65\u6570*\u65e7\u5468\u671f<br \/>\n        \/\/\u66f4\u65b0\u5b8c\u6bd5\u540e&#xff0c;\u5fc5\u987b\u5bf9\u65b0\u7684\u5168\u5c40\u5468\u671fnextlcm\u53d6\u6a21<br \/>\n        ans&#061;(ans&#043;x0*lcm)%nextlcm;<\/p>\n<p>        \/\/\u66f4\u65b0\u603b\u5468\u671f<br \/>\n        lcm&#061;nextlcm;<\/p>\n<p>        \/\/\u786e\u4fdd\u603b\u7b54\u6848\u662f\u6700\u5c0f\u6b63\u6574\u6570<br \/>\n        ans&#061;(ans%lcm&#043;lcm)%lcm;<br \/>\n    }<br \/>\n    return ans;<br \/>\n}<\/p>\n<p>int main(){<br \/>\n    ios::sync_with_stdio(false);<br \/>\n    cin.tie(0);<br \/>\n    while(cin&gt;&gt;n){<br \/>\n        for(int i&#061;1;i&lt;&#061;n;i&#043;&#043;)<br \/>\n            cin&gt;&gt;m[i]&gt;&gt;a[i];<\/p>\n<p>        \/\/\u6269\u5c55\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\u6c42\u89e3<br \/>\n        cout&lt;&lt;excrt()&lt;&lt;&#034;\\\\n&#034;;<br \/>\n    }<br \/>\n    return 0;<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u9898\u76ee\u63cf\u8ff0\u3011\u539f\u9898\u6765\u81ea&#xff1a;POJ 2891\u7ed9\u5b9a\u00a02n\u00a0\u4e2a\u6b63\u6574\u6570\u00a0a1,a2,\u22ef,an\u548c\u00a0m1,m2,\u22ef,m[n] &#xff0c;\u6c42\u4e00\u4e2a\u6700\u5c0f\u7684\u6b63\u6574\u6570\u00a0x&#xff0c;\u6ee1\u8db3\u00a0\u2200i\u2208[1,n],x\u2261ai(mod m[i])&#xff0c;\u6216\u8005\u7ed9\u51fa\u65e0\u89e3\u3002\u3010\u8f93\u5165\u3011\u591a\u7ec4\u6570\u636e\u3002\u6bcf\u7ec4\u6570\u636e\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570\u00a0n&#xff1b;\u63a5\u4e0b\u6765\u00a0n\u00a0\u884c&#xff0c;\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\u00a0mi,ai\u00a0\u3002\u3010\u8f93\u51fa\u3011\u5bf9\u4e8e\u6bcf\u7ec4\u6570\u636e&#xff0c;\u82e5\u65e0\u89e3&#xff0c;\u8f93\u51fa\u00a0\u22121&#xff1b;\u5426\u5219\u8f93\u51fa\u4e00\u4e2a\u975e\u8d1f\u6574<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12969,12970,12971,4145,427],"topic":[],"class_list":["post-113998","post","type-post","status-publish","format-standard","hentry","category-server","tag-12969","tag-12970","tag-12971","tag-4145","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \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\/113998.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u9898\u76ee\u63cf\u8ff0\u3011\u539f\u9898\u6765\u81ea&#xff1a;POJ 2891\u7ed9\u5b9a\u00a02n\u00a0\u4e2a\u6b63\u6574\u6570\u00a0a1,a2,\u22ef,an\u548c\u00a0m1,m2,\u22ef,m[n] &#xff0c;\u6c42\u4e00\u4e2a\u6700\u5c0f\u7684\u6b63\u6574\u6570\u00a0x&#xff0c;\u6ee1\u8db3\u00a0\u2200i\u2208[1,n],x\u2261ai(mod m[i])&#xff0c;\u6216\u8005\u7ed9\u51fa\u65e0\u89e3\u3002\u3010\u8f93\u5165\u3011\u591a\u7ec4\u6570\u636e\u3002\u6bcf\u7ec4\u6570\u636e\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570\u00a0n&#xff1b;\u63a5\u4e0b\u6765\u00a0n\u00a0\u884c&#xff0c;\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\u00a0mi,ai\u00a0\u3002\u3010\u8f93\u51fa\u3011\u5bf9\u4e8e\u6bcf\u7ec4\u6570\u636e&#xff0c;\u82e5\u65e0\u89e3&#xff0c;\u8f93\u51fa\u00a0\u22121&#xff1b;\u5426\u5219\u8f93\u51fa\u4e00\u4e2a\u975e\u8d1f\u6574\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/113998.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-07T23:50:03+00:00\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113998.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/113998.html\",\"name\":\"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-07T23:50:03+00:00\",\"dateModified\":\"2026-10-07T23:50:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/113998.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/113998.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113998.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09\"}]},{\"@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":"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \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\/113998.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u9898\u76ee\u63cf\u8ff0\u3011\u539f\u9898\u6765\u81ea&#xff1a;POJ 2891\u7ed9\u5b9a\u00a02n\u00a0\u4e2a\u6b63\u6574\u6570\u00a0a1,a2,\u22ef,an\u548c\u00a0m1,m2,\u22ef,m[n] &#xff0c;\u6c42\u4e00\u4e2a\u6700\u5c0f\u7684\u6b63\u6574\u6570\u00a0x&#xff0c;\u6ee1\u8db3\u00a0\u2200i\u2208[1,n],x\u2261ai(mod m[i])&#xff0c;\u6216\u8005\u7ed9\u51fa\u65e0\u89e3\u3002\u3010\u8f93\u5165\u3011\u591a\u7ec4\u6570\u636e\u3002\u6bcf\u7ec4\u6570\u636e\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570\u00a0n&#xff1b;\u63a5\u4e0b\u6765\u00a0n\u00a0\u884c&#xff0c;\u6bcf\u884c\u4e24\u4e2a\u6574\u6570\u00a0mi,ai\u00a0\u3002\u3010\u8f93\u51fa\u3011\u5bf9\u4e8e\u6bcf\u7ec4\u6570\u636e&#xff0c;\u82e5\u65e0\u89e3&#xff0c;\u8f93\u51fa\u00a0\u22121&#xff1b;\u5426\u5219\u8f93\u51fa\u4e00\u4e2a\u975e\u8d1f\u6574","og_url":"https:\/\/www.wsisp.com\/helps\/113998.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-07T23:50:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/113998.html","url":"https:\/\/www.wsisp.com\/helps\/113998.html","name":"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-07T23:50:03+00:00","dateModified":"2026-10-07T23:50:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/113998.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/113998.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/113998.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u4f8b 5\u3011Strange Way to Express Integers\uff08\u4fe1\u606f\u5b66\u5965\u8d5b\u4e00\u672c\u901a- P1635\uff09"}]},{"@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\/113998","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=113998"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113998\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=113998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=113998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=113998"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=113998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}