2011-08-02から1日間の記事一覧
問題 error LNK2019: 未解決の外部シンボル _cvReleaseImage が関数 _main で参照されました。 解決 「プロジェクト」→「○×△のプロパティ」→「構成プロパティ」→「リンカ」→「入力」→「追加の依存ファイル」に cv210.lib cxcore210.lib highgui210.lib を書く
問題 Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this v…
問題 Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and b are called amicable numbers.For exampl…
問題 n! means n (n 1) ... 3 2 1For example, 10! = 10 9 ... 3 2 1 = 3628800, and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.Find the sum of the digits in the number 100! 回答 def kai(n) return n if n == 1 retu…