USACO Section 1.5 Checker Challenge

/*
ID: lucien23
PROG: checker
LANG: C++
*/

#include
#include
#include
int N;
int symPos;
int sum=0;
int count=0;
bool isCountComplete=false;
bool isPrintComplete=false;
int *position;

void generate(int row);

int main()
{
	freopen("checker.in","r",stdin);
	freopen("checker.out","w",stdout);

	scanf("%d",&N);
	symPos=N/2+N%2+1;
	position=(int*)malloc(N*sizeof(int));
	generate(0);
	printf("%d\n",sum);
	free(position);
	return 0;
}

void generate(int row)
{
	int *pPos=(int*)malloc(N*sizeof(int));
	for(int i=0;i

你可能感兴趣的:(USACO)