最近看數論,轉頭重新思考了這題,參考了下論文和lrj的黑書,重新證明一遍,做個筆記。例題:HDOJ 1792 A New Change Problem題意:給定A和B,A和B互質,求最大不能組合數,和不能組合數的個數。基礎知識:Gcd(A, B) = 1 → Lcm(A, B) = AB剩餘類,把所有整數劃分成m個等價類別,每個等價類別由相互同餘的整數組成任何數分成m個剩餘類,分別為 mk,mk+1,mk+2,……,mk+(m-1)分別記為{0(mod m)},{1(mod
這個錯誤是說config檔案的94行,有SVN無法識別的前置空格。如### Set global-ignores to a set of whitespace-delimited globs### which Subversion will ignore in its 'status' output, and### while importing or adding files and directories.### '*' matches leading dots, e.g. '*.rej'
Congratulation ! You find the right way to solve this problem! step 1: regenerated .h .cpp .idl file according to http://blogs.msdn.com/b/dandris/archive/2008/06/30/help-how-do-i-send-data-in-my-ws-eventing-subscribe-message.aspx step2: Create
原文:[引自Artech]我的WCF之旅(1):建立一個簡單的WCF程式 我在學習這篇文章時碰到的幾個問題:1.當我在code完Hosting項目,想把服務跑起來的時候,一直提示無許可權訪問這個url, a.右鍵點擊Hosting->debug->Start new instance 出現無許可權訪問 b.build這個Hosting,open folder in window
原文:Endpoint Overview 我在學習這一章節的時候著重驗證了下通訊時Endpoint的Address和Binding必須匹配才能夠通訊。我沒有原作者提供的Sample,而是用了上次的Solution.修改如下:1.在Hosting 項目裡加了Address,變成 Uri httpBaseAddress = new Uri(http://localhost:8888/generalCalculator); Uri tcpBaseAddress = new
請保證你用的dll,pdb檔案是同一次編譯出來的。因為每次編譯可能導致代碼布局不一樣。就是說每次編譯會導致相同的代碼,在不同的pdb裡面布局不一致。原文解釋:http://blogs.msdn.com/b/jimgries/archive/2007/07/06/why-does-visual-studio-require-debugger-symbol-files-to-exactly-match-the-binary-files-that-they-were-built-with.aspx t