编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1108 #997. 内讧 Wrong Answer 0 474 ms 2884 K Python 3 / 338 B s230034061 2023-10-15 15:46:09
n,m=map(int,intput().split())
matrix=[]
for b in range(m):
    row = list(map(int,input().split()))
    ma.append(row)
def unhappy(n,m,ma):
    a=0
    for i in range(n):
        for j in range(i+1,n):
            if all(abs(ma[k][i]-ma[k][j])>1 for k in range(m)):
                a += 1
    return a

print(unhappy(n,m,ma))
子任务 #1
Wrong Answer
得分:0
测试点 #1
Wrong Answer
得分:0
用时:35 ms
内存:2820 KiB

输入文件(00_sample_00.in

4 2
1 2 3 4
4 3 1 2

答案文件(00_sample_00.out

2

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #2
Wrong Answer
得分:0
用时:34 ms
内存:2752 KiB

输入文件(00_sample_01.in

3 3
1 2 3
3 1 2
1 2 3

答案文件(00_sample_01.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #3
Wrong Answer
得分:0
用时:35 ms
内存:2872 KiB

输入文件(00_sample_02.in

10 10
4 10 7 2 8 3 9 1 6 5
3 6 2 9 1 8 10 7 4 5
9 3 4 5 7 10 1 8 2 6
7 3 1 8 4 9 5 6 2 10
5 2 1 4 10
<116 bytes omitted>

答案文件(00_sample_02.out

6

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #4
Wrong Answer
得分:0
用时:35 ms
内存:2764 KiB

输入文件(01_small_00.in

2 1
1 2

答案文件(01_small_00.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #5
Wrong Answer
得分:0
用时:35 ms
内存:2864 KiB

输入文件(01_small_01.in

2 1
2 1

答案文件(01_small_01.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #6
Wrong Answer
得分:0
用时:33 ms
内存:2780 KiB

输入文件(01_small_02.in

2 2
1 2
2 1

答案文件(01_small_02.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #7
Wrong Answer
得分:0
用时:34 ms
内存:2884 KiB

输入文件(01_small_03.in

4 24
1 2 3 4
1 2 4 3
1 3 2 4
1 3 4 2
1 4 2 3
1 4 3 2
2 1 3 4
2 1 4 3
2 3 1 4
2 3 4 1
2 4 1 3
2 4 3 1
<97 bytes omitted>

答案文件(01_small_03.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #8
Wrong Answer
得分:0
用时:35 ms
内存:2812 KiB

输入文件(01_small_04.in

4 12
1 2 3 4
1 3 4 2
1 4 3 2
2 1 4 3
2 3 1 4
2 4 1 3
3 1 4 2
3 4 1 2
4 1 2 3
4 2 1 3
4 2 3 1
4 3 2 1
<1 byte omitted>

答案文件(01_small_04.out

0

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #9
Wrong Answer
得分:0
用时:35 ms
内存:2864 KiB

输入文件(02_rnd_00.in

50 25
21 46 41 12 25 16 17 43 47 24 29 37 35 26 31 45 5 10 34 14 22 11 13 42 38 15 28 30 27 2 23 36 
<3431 bytes omitted>

答案文件(02_rnd_00.out

426

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #10
Wrong Answer
得分:0
用时:31 ms
内存:2800 KiB

输入文件(02_rnd_01.in

49 18
19 29 45 36 5 44 24 40 42 11 9 10 8 18 41 14 1 39 48 49 3 30 46 35 12 28 21 27 17 43 13 26 33 
<2390 bytes omitted>

答案文件(02_rnd_01.out

560

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #11
Wrong Answer
得分:0
用时:34 ms
内存:2808 KiB

输入文件(02_rnd_02.in

48 33
29 10 46 7 31 2 11 41 3 19 28 45 33 23 24 36 25 17 47 40 12 21 26 22 34 20 5 16 42 30 27 32 43
<4361 bytes omitted>

答案文件(02_rnd_02.out

261

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #12
Wrong Answer
得分:0
用时:25 ms
内存:2772 KiB

输入文件(03_same_00.in

3 50
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
<205 bytes omitted>

答案文件(03_same_00.out

1

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #13
Wrong Answer
得分:0
用时:39 ms
内存:2780 KiB

输入文件(03_same_01.in

49 50
47 22 14 1 8 11 13 48 2 19 33 21 37 34 39 10 5 12 6 38 45 9 43 3 30 31 46 15 25 40 17 4 29 35 
<6806 bytes omitted>

答案文件(03_same_01.out

1128

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #14
Wrong Answer
得分:0
用时:34 ms
内存:2760 KiB

输入文件(03_same_02.in

50 50
27 24 48 16 15 13 46 18 39 1 12 23 4 34 28 41 45 30 44 49 21 6 7 20 32 3 9 43 40 8 36 42 11 33
<6956 bytes omitted>

答案文件(03_same_02.out

1176

标准错误流

Traceback (most recent call last):
  File "/sandbox/2/a.py", line 1, in <module>
    n,m=map(int,intput().split())
NameError: name 'intput' is not defined

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1