CCF 201412-2 Z字型扫描

CCF 201412-2 Z字型扫描

#include
#include
#include
using namespace std;
#define Right 1
#define Down 1

int main()
{
	int n =0;
	cin>>n;
	int** a = (int**)malloc(sizeof(int*)*n);
	for(int i=0;i>a[i][j];
		}
	}

	int i=0,j =0,k=1;
	cout<0)
			{
				i++;j--;
				k++;
				cout<0)
			{
				i--;j++;
				k++;
				cout<=0)
		{
			j++;
			cout<

你可能感兴趣的:(CCF)