题目:问n*m的地图最多放多少个3*3的矩形。
分析:简单题。输出(n/3)*(m/3)即可。
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int t,n,m;
while ( scanf("%d",&t) != EOF )
while ( t -- ) {
scanf("%d%d",&n,&m);
printf("%d\n",(n/3)*(m/3));
}
return 0;
}