QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486749#8892. Power Gridegypt_ioi2024_05#8 122ms7720kbC++171.5kb2024-07-22 00:10:232024-07-22 00:10:24

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 1ms
memory: 5632kb

input:

1 1
0

output:

-3 

result:

ok correct

Test #2:

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

input:

1 1
0

output:

-3 

result:

ok correct

Test #3:

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

input:

1 2
1 1

output:

-1 -1 

result:

ok correct

Test #4:

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

input:

3 1
0
3
1

output:

-2 
1 
-1 

result:

ok correct

Test #5:

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

input:

2 2
1 1
1 1

output:

-3 -3 
-2 -2 

result:

ok correct

Test #6:

score: 0
Accepted
time: 7ms
memory: 5676kb

input:

3 3
2 1 1
2 1 1
0 1 3

output:

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

result:

ok correct

Test #7:

score: 0
Accepted
time: 4ms
memory: 5720kb

input:

3 3
0 1 0
2 1 2
1 2 1

output:

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

result:

ok correct

Test #8:

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

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: 10ms
memory: 7720kb

input:

3 3
3 1 2
3 1 2
3 1 2

output:

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

result:

ok correct

Test #10:

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

input:

3 3
3 3 3
0 0 0
3 3 3

output:

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

result:

ok correct

Subtask #2:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #11:

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

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: 0ms
memory: 5628kb

input:

6 1
2
1
1
1
5
0

output:

0 
-1 
-1 
-1 
3 
-2 

result:

ok correct

Test #13:

score: -5
Time Limit Exceeded

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:


result:


Subtask #3:

score: 0
Time Limit Exceeded

Test #23:

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

input:

1 1
0

output:

-3 

result:

ok correct

Test #24:

score: -11
Time Limit Exceeded

input:

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

output:


result:


Subtask #4:

score: 0
Wrong Answer

Test #30:

score: 6
Accepted
time: 1ms
memory: 5696kb

input:

2 2
0 0
0 0

output:

-3 -3 
-3 -3 

result:

ok correct

Test #31:

score: -6
Wrong Answer
time: 0ms
memory: 5632kb

input:

2 2
7 7
7 7

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #5:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 122ms
memory: 5760kb

input:

2 4
253 431 207 483
243 65 289 13

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #6:

score: 0
Time Limit Exceeded

Test #58:

score: 0
Time Limit Exceeded

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
Wrong Answer

Test #68:

score: 0
Wrong Answer
time: 1ms
memory: 5700kb

input:

2 2
5 52
52 5

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #8:

score: 0
Skipped

Dependency #2:

0%

Subtask #9:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%