正文
增加 7 行删除 7 行
5 行未改动6789101112131415161718192075 行未改动9697989910010110210310410510610710810911033 行未改动1441451461471481491501511526 行未改动1591601611621631641651665 行未改动using namespace std;const int bn=30;int f[8]={1,-1,0,0,0,0,-1,1};bool boom[30][30];//1雷0无雷bool flag=0;bool mp[30][30];int number[30][30];bool qi[30][30];void dfs(int x,int y);void ai();signed main(){srand(time(NULL));initgraph(20*bn+50,20*bn+50,true);setlinestyle(PS_SOLID,1);75 行未改动settextcolor(RGB(63,97,214));outtextxy(j*bn+25+bn/2-textwidth("8")/2,i*bn+25+bn/2-textheight("8")/2,"8");}}if(mp[i][j]==false){setfillcolor(RGB(125,130,125));solidrectangle(j*bn+25+1,i*bn+25+1,j*bn+bn+25-1,i*bn+bn+25-1);}if(qi[i][j]==true){setfillcolor(RED);solidrectangle(j*bn+25+15,i*bn+25+5,j*bn+25+25,i*bn+25+17);line(j*bn+25+15,i*bn+25+5,j*bn+25+15,i*bn+25+25);}}}33 行未改动}EndBatchDraw();cleardevice();}}void dfs(int x,int y){if(number[x][y]!=0){mp[x][y]=true;return ;6 行未改动}}}void ai(){}```5 行未改动6789101112131415161718192075 行未改动9697989910010110210310410510610710810911033 行未改动1441451461471481491501511526 行未改动1591601611621631641651665 行未改动using namespace std;const int bn=30;int f[8]={1,-1,0,0,0,0,-1,1};bool boom[30][30];//1雷0无雷bool flag=0;bool mp[30][30];int number[30][30];bool qi[30][30];void dfs(int x,int y);void ai();signed main(){srand(time(NULL));initgraph(20*bn+50,20*bn+50,true);setlinestyle(PS_SOLID,1);75 行未改动settextcolor(RGB(63,97,214));outtextxy(j*bn+25+bn/2-textwidth("8")/2,i*bn+25+bn/2-textheight("8")/2,"8");}}if(mp[i][j]==false){setfillcolor(RGB(125,130,125));solidrectangle(j*bn+25+1,i*bn+25+1,j*bn+bn+25-1,i*bn+bn+25-1);}if(qi[i][j]==true){setfillcolor(RED);solidrectangle(j*bn+25+15,i*bn+25+5,j*bn+25+25,i*bn+25+17);line(j*bn+25+15,i*bn+25+5,j*bn+25+15,i*bn+25+25);}}}33 行未改动}EndBatchDraw();cleardevice();}}void dfs(int x,int y){if(number[x][y]!=0){mp[x][y]=true;return ;6 行未改动}}}void ai(){}```