{"id":89013,"date":"2024-02-16T05:24:11","date_gmt":"2024-02-15T21:24:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=89013"},"modified":"2024-02-16T05:24:11","modified_gmt":"2024-02-15T21:24:11","slug":"russian-multiplication","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/russian-multiplication.html","title":{"rendered":"\u7b97\u6cd5\u2014\u2014\u4fc4\u5f0f\u4e58\u6cd5"},"content":{"rendered":"
\u4e24\u4e2a\u6b63\u6574\u6570\u76f8\u4e58\u7684\u975e\u4e3b\u6d41\u7b97\u6cd5<\/p>\n
\u5047\u8bben\u548cm\u662f\u4e24\u4e2a\u6b63\u6574\u6570\uff0c\u8ba1\u7b97n*m\uff0c\u73b0\u5728\u7528n\u7684\u8f93\u5165\u4f5c\u4e3a\u5b9e\u4f8b\u89c4\u6a21\u7684\u5ea6\u91cf\u6807\u51c6\u3002<\/p>\n
\u5047\u8bben\u662f\u5076\u6570\uff0c\u4e00\u4e2a\u89c4\u6a21\u4e3a\u539f\u6765\u4e00\u534a\u7684\u5b9e\u4f8b\u5fc5\u987b\u8981\u5bf9n\/2\u8fdb\u884c\u5904\u7406\uff0cn*m=n\/2 * 2m<\/p>\n
\u5047\u8bben\u662f\u5947\u6570\uff0c\u53ea\u9700\u8981\u5bf9\u516c\u5f0f\u8fdb\u884c\u7b80\u5355\u8c03\u6574\uff0cn*m=\uff08n-1\uff09\/2 * 2m<\/p>\n
\u5e76\u4e14\u4f7f\u75281*m=m\u4f5c\u4e3a\u7ec8\u6b62\u6761\u4ef6\u3002<\/p>\n
\u6211\u4eec\u5199\u4e0b\u6765\u4e00\u4e2a\u4f8b\u5b50\u5c31\u4f1a\u53d1\u73b0\uff1a\u6240\u6709\u5f53\u524dn\u7684\u503c\u662f\u5947\u6570\u65f6\u5019\uff0c\u53ea\u9700\u8981\u76f8\u52a0\u5bf9\u5e94\u7684m\u503c\u5373\u53ef\u5f97\u5230n*m\u7684\u4e58\u79ef\u3002<\/p>\n
\u4f8b\u5982\uff1a50*65=25*130=12*260 \uff08+130\uff09=6*520=3*1040=1*2080===2080+1040+130=3250<\/p>\n
\u4e0b\u9762\u6211\u4eec\u5c31\u5f00\u59cb\u4e0b\u4ee3\u7801\u5b9e\u73b0\uff1a int main() \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.cnblogs.com\/wongyi\/p\/7736991.html<\/a><\/p>\n
\n#include
\nusing namespace std;<\/p>\n
\n{
\n int n,m,mul=0;
\n cin>>n>>m;
\n for(int i=n>>1;i>=1;i=i>>1)
\n {
\n m=m< <1;\n if(i%2==1)\n {\n mul=m+mul;\n }\n }\n cout<\n