编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1840 #997. 内讧 Wrong Answer 14 499 ms 2936 K Python 3 / 388 B s230034055 2023-10-15 16:56:14
m,n = map(int,input().split())
p = []
for _ in range(m):
    r= list(map(int,input().split()))
    p.append(r)
u = 0
for i in range(n):
    for j in range(i+1, n):
        unhappy = True
        for n in range(m):
            if abs(p[n].index(i+1) - p[n].index(j+1)) == 1:
                unhappy = False
                break
        if unhappy:
            u+=1
print(u)
子任务 #1
Wrong Answer
得分:14
测试点 #1
Wrong Answer
得分:0
用时:34 ms
内存:2796 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #2
Accepted
得分:100
用时:32 ms
内存:2784 KiB

输入文件(00_sample_01.in

3 3
1 2 3
3 1 2
1 2 3

答案文件(00_sample_01.out

0

用户输出

0

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:34 ms
内存:2812 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

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:34 ms
内存:2936 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #5
Wrong Answer
得分:0
用时:34 ms
内存:2808 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #6
Accepted
得分:100
用时:26 ms
内存:2880 KiB

输入文件(01_small_02.in

2 2
1 2
2 1

答案文件(01_small_02.out

0

用户输出

0

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:35 ms
内存:2812 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 11, in <module>
    if abs(p[n].index(i+1) - p[n].index(j+1)) == 1:
ValueError: 5 is not in list

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #8
Wrong Answer
得分:0
用时:24 ms
内存:2780 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 11, in <module>
    if abs(p[n].index(i+1) - p[n].index(j+1)) == 1:
ValueError: 5 is not in list

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #9
Wrong Answer
得分:0
用时:34 ms
内存:2868 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #10
Wrong Answer
得分:0
用时:34 ms
内存:2808 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #11
Wrong Answer
得分:0
用时:35 ms
内存:2860 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 4, in <module>
    r= list(map(int,input().split()))
EOFError: EOF when reading a line

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #12
Wrong Answer
得分:0
用时:24 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 11, in <module>
    if abs(p[n].index(i+1) - p[n].index(j+1)) == 1:
ValueError: 4 is not in list

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #13
Wrong Answer
得分:0
用时:35 ms
内存:2832 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 11, in <module>
    if abs(p[n].index(i+1) - p[n].index(j+1)) == 1:
ValueError: 50 is not in list

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 1
测试点 #14
Wrong Answer
得分:0
用时:84 ms
内存:2884 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

用户输出

766

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0