⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2304.cpp

📁 这是哈尔滨工业大学acmOJ的源代码
💻 CPP
字号:
/*  This Code is Submitted by wywcgs for Problem 2304 on 2006-08-02 at 22:09:47 */ 
#include <cstdio>
#include <algorithm>
using namespace std;

const int N = 1024;

int main()
{
	int i, j, n, fc[N], nc[N];
	
	while(scanf("%d", &n) != EOF && n != 0) {
		for(i = 0; i < n; i++) scanf("%d", &fc[i]);
		bool can = true;
		for(i = 1; i < n; i++) {
			for(j = 0; j < n; j++) { scanf("%d", &nc[j]); nc[j] -= fc[j]; }
			for(j = 1; j < n && can; j++)
				if(nc[j] != nc[0]) can = false;
		}
		printf("%shomogeneous\n", can ? "" : "not ");
	}
	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -