QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#486669#8892. Power Gridegypt_ioi2024_02#8 505ms3800kbC++202.5kb2024-07-21 22:47:372024-07-21 22:47:37

详细

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 0ms
memory: 3664kb

input:

1 1
0

output:

-3 

result:

ok correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

1 1
0

output:

-3 

result:

ok correct

Test #3:

score: 0
Accepted
time: 0ms
memory: 3564kb

input:

1 2
1 1

output:

-1 -1 

result:

ok correct

Test #4:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

3 1
0
3
1

output:

1 
-2 
2 

result:

ok correct

Test #5:

score: 0
Accepted
time: 0ms
memory: 3624kb

input:

2 2
1 1
1 1

output:

-3 -2 
-3 -2 

result:

ok correct

Test #6:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

3 3
2 1 1
2 1 1
0 1 3

output:

-2 -3 -3 
-2 -3 -3 
-2 -1 -3 

result:

ok correct

Test #7:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

3 3
0 1 0
2 1 2
1 2 1

output:

-1 -3 -3 
-3 -3 -3 
-3 -2 -1 

result:

ok correct

Test #8:

score: 0
Accepted
time: 0ms
memory: 3624kb

input:

3 3
0 0 2
2 2 0
0 0 2

output:

-3 -3 -3 
-3 -3 -1 
-3 -3 -3 

result:

ok correct

Test #9:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

3 3
3 1 2
3 1 2
3 1 2

output:

-1 -3 -3 
-1 -3 -3 
-2 -2 -3 

result:

ok correct

Test #10:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

3 3
3 3 3
0 0 0
3 3 3

output:

-3 -3 -3 
0 -3 -3 
-3 0 0 

result:

ok correct

Subtask #2:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #11:

score: 5
Accepted
time: 1ms
memory: 3560kb

input:

1 6
1 0 3 1 3 0

output:

1 0 3 -1 -3 0 

result:

ok correct

Test #12:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

6 1
2
1
1
1
5
0

output:

0 
1 
1 
1 
-3 
2 

result:

ok correct

Test #13:

score: 0
Accepted
time: 0ms
memory: 3628kb

input:

6 6
3 1 0 3 4 0
1 1 2 1 2 2
1 1 2 1 2 2
1 3 4 1 0 4
1 1 2 1 2 2
2 0 1 2 3 1

output:

-3 -3 -3 -3 -3 1 
-3 -3 -2 -2 -3 -3 
-3 -3 -1 -3 -3 -3 
-3 -3 -3 -3 -3 -3 
-2 -3 -2 -3 -3 -3 
-3 0 -3 -3 -3 -3 

result:

ok correct

Test #14:

score: 0
Accepted
time: 505ms
memory: 3620kb

input:

6 6
2 4 4 0 2 2
5 1 1 3 1 1
4 2 2 2 0 0
2 4 4 0 2 2
6 0 0 4 2 2
3 3 3 1 1 1

output:

-3 -3 -3 -1 -3 -1 
-3 -3 -3 -2 -3 -3 
-2 -3 -3 -2 -3 -3 
1 -3 -3 -3 -3 -3 
-3 -3 -3 -3 -3 -3 
-2 -3 -3 -3 -1 -3 

result:

ok correct

Test #15:

score: 0
Accepted
time: 192ms
memory: 3568kb

input:

6 6
1 0 4 5 3 2
4 5 1 0 2 3
3 4 0 1 1 2
2 3 1 2 0 1
1 2 2 3 1 0
0 1 3 4 2 1

output:

-3 0 -2 -3 -3 -2 
-3 -3 -3 -3 -3 -3 
-3 -2 -3 -3 -3 -3 
-3 -3 -3 -3 -3 -1 
-1 -2 -3 -3 -3 -3 
-1 -3 -3 -3 -1 -3 

result:

ok correct

Test #16:

score: -5
Time Limit Exceeded

input:

6 6
6 4 2 4 1 3
6 4 2 4 1 3
6 4 2 4 1 3
6 4 2 4 1 3
6 4 2 4 1 3
6 4 2 4 1 3

output:


result:


Subtask #3:

score: 0
Runtime Error

Test #23:

score: 11
Accepted
time: 0ms
memory: 3620kb

input:

1 1
0

output:

-3 

result:

ok correct

Test #24:

score: -11
Runtime Error

input:

1 10
230 289 918 752 224 184 573 217 398 715

output:


result:


Subtask #4:

score: 0
Runtime Error

Test #30:

score: 6
Accepted
time: 0ms
memory: 3632kb

input:

2 2
0 0
0 0

output:

-3 -3 
-3 -3 

result:

ok correct

Test #31:

score: -6
Runtime Error

input:

2 2
7 7
7 7

output:


result:


Subtask #5:

score: 0
Runtime Error

Test #46:

score: 0
Runtime Error

input:

2 4
253 431 207 483
243 65 289 13

output:


result:


Subtask #6:

score: 0
Runtime Error

Test #58:

score: 0
Runtime Error

input:

1000 1000
1 0 0 1 0 1 0 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 1 1 0 1 1 0 1 1 1 0 0 1 1 0 0 0 1 1 0 1 1 0 1 1 1 0 0 0 1 0 0 0 1 0 1 1 0 0 0 1 0 0 0 1 1 0 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 1 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0 0 0 0 0 1 1 1 0 1 0 1 0 0 1 1 1 0 1 1 0 0 0 0 1 1 0 1 1 ...

output:


result:


Subtask #7:

score: 0
Runtime Error

Test #68:

score: 0
Runtime Error

input:

2 2
5 52
52 5

output:


result:


Subtask #8:

score: 0
Skipped

Dependency #2:

0%

Subtask #9:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%