b***k 发帖数: 2673 | 1 ☆─────────────────────────────────────☆
ilovelg (nothing) 于 (Mon Feb 18 12:39:23 2008) 提到:
Seeing for discussion for the following problems (some of appeared in old
posts):
1. A n*m matrix is composed of n*m unit cubes. Draw a diagonal line
connecting two opposite corners of matrix, develop a formula showing how many cubes are
crossed(touch on corner does not count as cross) by the diagonal line.
Answer is n+m-gcf(n,m). why?
2. Russian roulette problem played by two people with a revolver |
|