首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 设有n*m个方格的棋盘(1<=m,n<=100),求出该棋盘中包含多少个正方形、多少个长方形(不包括正方形)。 例如:当n=3,m=2 时...

设有n*m个方格的棋盘(1<=m,n<=100),求出该棋盘中包含多少个正方形、多少个长方形(不包括正方形)。 例如:当n=3,m=2 时...

  • 资源大小:96.24 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Windows开发 c++

资 源 简 介

设有n*m个方格的棋盘(1<=m,n<=100),求出该棋盘中包含多少个正方形、多少个长方形(不包括正方形)。 例如:当n=3,m=2 时 正方形的个数有8个;即边长为1的正方形有6个;边长为2的正方形有2个。 -with n* m box at the chessboard (1LT; = M, 4; = 100), obtained the chessboard includes the number of square, the number of rectangular (including square). For example : when n = 3, m = 2 square with the number 8; That is a side length of the square is 6; Side 2 is the square two.

文 件 列 表

第一次实验报告(数正方).doc
VIP VIP
0.187523s