用C++程序解决星星碰问题
#include <iostream> using namespace std; int map[100][100]; int ans[100][100]; int n,m; bool check_map(){ for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)if(map[i][j]==1)return false; return true; } void#欢乐星星碰