不知道代码哪里出问题了牛客上案例能过,保存提交通过率就成0了。请教一下,帮忙找找问题在哪,为什么VC不了。
闰年判断有误
应该是x%4==0&&X%100!=0||x%400==0
void DisplayBoard(char borad[ROW][COL], int row, int col)
{
int i = 0;
for (i = 0; i < row; i++)
{
int j = 0;
for (j = 0; j < col; j++)
{
printf(" %c ", borad[i][j]);
if (j < col - 1)
{
printf("|");
}
}
printf("\n");
if (i < row - 1)
{
for (j = 0; j < col; j++)
{
printf("---");
if (j < col - 1)
printf("|");
}
printf("\n");
}
}
}