{"id":13,"date":"2023-01-10T19:07:00","date_gmt":"2023-01-10T11:07:00","guid":{"rendered":"https:\/\/solost.cn\/?p=13"},"modified":"2023-01-10T19:09:10","modified_gmt":"2023-01-10T11:09:10","slug":"21","status":"publish","type":"post","link":"https:\/\/solost.cn\/?p=13","title":{"rendered":"\u6c42\u4f59\u89c4\u5219"},"content":{"rendered":"<pre><code class=\"C++\">\u6a21\u8fd0\u7b97\u4e0e\u57fa\u672c\u56db\u5219\u8fd0\u7b97\u6709\u4e9b\u76f8\u4f3c\uff0c\u4f46\u662f\u9664\u6cd5\u4f8b\u5916\u3002\u5176\u89c4\u5219\u5982\u4e0b\uff1a\n\n (a + b) % p = (a % p + b % p) % p \n\n\uff081\uff09 (a - b) % p = (a % p - b % p) % p \n\n\uff082\uff09 (a * b) % p = (a % p * b % p) % p \n\n\uff083\uff09 a ^ b % p = ((a % p)^b) % p \n\n\uff084\uff09 \u7ed3\u5408\u5f8b\uff1a ((a+b) % p + c) % p = (a + (b+c) % p) % p \n\n\uff085\uff09 ((a*b) % p * c)% p = (a * (b*c) % p) % p \n\n\uff086\uff09 \u4ea4\u6362\u5f8b\uff1a (a + b) % p = (b+a) % p \n\n\uff087\uff09 (a * b) % p = (b * a) % p \n\n\uff088\uff09 \u5206\u914d\u5f8b\uff1a ((a +b)% p * c) % p = ((a * c) % p + (b * c) % p) % p \n\n\n\u91cd\u8981\u5b9a\u7406\n\n\u82e5a\u2261b (% p)\uff0c\u5219\u5bf9\u4e8e\u4efb\u610f\u7684c\uff0c\u90fd\u6709(a + c) \u2261 (b + c) (%p)\uff1b\n\n\uff0810\uff09 \u82e5a\u2261b (% p)\uff0c\u5219\u5bf9\u4e8e\u4efb\u610f\u7684c\uff0c\u90fd\u6709(a * c) \u2261 (b * c) (%p)\uff1b\n\n\uff0811\uff09 \u82e5a\u2261b (% p)\uff0cc\u2261d (% p)\uff0c\n\n\u5219 (a + c) \u2261 (b + d) (%p)\uff0c\n\n(a - c) \u2261 (b - d) (%p)\uff0c \n\n(a * c) \u2261 (b * d) (%p)\uff0c\n\n(a \/ c) \u2261 (b \/ d) (%p)\uff1b<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6a21\u8fd0\u7b97\u4e0e\u57fa\u672c\u56db\u5219\u8fd0\u7b97\u6709\u4e9b\u76f8\u4f3c\uff0c\u4f46\u662f\u9664\u6cd5\u4f8b\u5916\u3002\u5176\u89c4\u5219\u5982\u4e0b\uff1a (a + b) % p = (a % p + b % p) % p \uff081\uff09 (a - b) % p = (a % p - b % p) % p \uff082\uff09 (a * b) % p = (a % p * b % p) % p \uff083\uff09 a ^ b % p = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-acm"],"_links":{"self":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":0,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}