1442:7.14(探究矩阵)

题目描述

编写程序,提示用户输入一个方阵的长度,用户在矩阵中填入0和1,打印这个矩阵,然后找出整行、整列或者对角线都是0或1的行、列和对角线。

输入解释
输入矩阵大小n,输入元素(0或1)
输出解释

输出


No same numbers on a row
No same numbers on a column
No same numbers on the major diagonal
No same numbers on the sub-diagonal


输入样例
3 
1 0 1
0 1 1
1 1 1
输出样例
All 1's on row 2
All 1's on column 2
All 1's on major diagonal
All 1's on sub-diagonal
提示

先做7.10(1443)

先输出存在的,后输出不存在的


该题目包含在题集 SSPU

题目来源 sspu

共提交 98

通过率 71.43%
时间上限 内存上限
1000 MS 128 MB

·

·

·

·

登陆或注册以提交代码