サブ com.js   Last modified: Mar 25, 2004

function com(n, m)
{
  var k, i
  var retv = 1
  k = Math.min(n-m, m)
  for (i = 1; i <= k; i++) {
    retv *= (n -i+1)/i
  }
  return retv
}


・ 直前のページへ戻る  ・ E-mail to Shigenobu AOKI

Made with Macintosh