QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486744#8892. Power Gridegypt_ioi2024_05#11 34ms8112kbC++171.5kb2024-07-22 00:04:302024-07-22 00:04:31

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

1 1
0

output:

1

result:

ok correct

Test #2:

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

input:

1 1
0

output:

1

result:

ok correct

Test #3:

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

input:

1 2
1 1

output:

1 1 

result:

ok correct

Test #4:

score: -8
Wrong Answer
time: 0ms
memory: 3640kb

input:

3 1
0
3
1

output:

1

result:

wrong output format Unexpected end of file - int32 expected

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 11
Accepted

Test #23:

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

input:

1 1
0

output:

1

result:

ok correct

Test #24:

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

input:

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

output:

-10 509 -698 -532 -4 36 793 3 618 -495 

result:

ok correct

Test #25:

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

input:

1 1000
298 440 513 326 225 36 897 92 347 346 919 370 28 957 593 332 736 960 346 969 329 893 380 523 104 345 860 451 290 958 164 386 508 786 605 778 453 500 376 670 86 283 844 408 282 541 479 827 9 558 473 251 184 694 920 905 1000 515 846 506 741 403 552 869 37 667 377 350 711 304 509 471 164 901 487...

output:

-296 -438 -511 -324 227 -34 899 -90 -345 348 -917 -368 -26 959 -591 334 738 -958 -344 971 331 -891 -378 525 106 347 -858 453 292 -956 166 388 510 -784 607 -776 455 -498 378 672 88 285 -842 -406 -280 543 481 -825 11 560 -471 253 186 -692 922 907 -998 517 -844 508 -739 405 -550 871 39 -665 379 352 -70...

result:

ok correct

Test #26:

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

input:

1 1000
684 573 532 550 99 296 284 671 559 397 215 977 399 460 710 152 111 966 525 184 613 982 274 805 541 238 258 357 884 969 343 700 55 610 351 470 212 842 908 911 752 593 257 396 343 937 253 395 452 718 513 754 990 149 853 895 783 329 20 728 119 602 15 202 475 49 578 427 27 349 547 225 223 209 197...

output:

686 575 -530 -548 -97 298 -282 -669 -557 399 -213 -975 401 -458 712 154 113 -964 527 186 -611 984 276 -803 -539 240 260 359 -882 971 345 -698 57 -608 353 472 214 -840 910 -909 754 -591 259 398 345 -935 -251 397 454 -716 515 -752 992 151 -851 897 -781 -327 22 730 121 -600 17 204 -473 51 580 -425 29 3...

result:

ok correct

Test #27:

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

input:

1 1000
379 888 365 408 845 405 394 954 362 367 421 913 426 418 401 422 389 890 393 898 924 405 916 408 378 419 393 372 398 863 363 903 408 872 403 372 368 383 400 401 849 878 386 923 863 410 884 387 905 388 929 390 338 416 385 388 420 371 930 411 391 923 389 952 388 385 387 936 931 384 867 889 390 8...

output:

381 -886 -363 410 -843 407 396 -952 364 369 423 -911 -424 420 -399 424 391 -888 395 900 -922 407 -914 410 -376 421 -391 374 -396 865 365 -901 410 -870 405 -370 370 -381 402 403 -847 880 388 -921 865 412 -882 -385 907 390 -927 -388 340 -414 387 -386 422 373 -928 413 -389 925 391 -950 -386 387 -385 93...

result:

ok correct

Test #28:

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

input:

1 1000
1 0 0 3 1 0 0 0 0 0 0 2 1 1 0 0 1 0 1 0 0 0 2 3 0 0 2 0 3 2 2 1 1 0 2 0 1 2 1 0 0 1 0 1 0 0 1 1 2 2 1 0 0 0 1 3 2 3 1 1 0 1 2 1 1 0 2 1 1 2 1 2 1 4 1 2 0 2 2 1 0 1 2 4 1 0 1 1 2 0 4 1 1 0 0 0 0 1 1 0 0 1 0 0 2 1 1 2 1 0 4 1 2 2 0 1 0 0 0 1 2 3 0 0 1 2 0 2 2 0 1 2 0 2 1 1 2 0 2 0 0 0 0 1 0 1 1...

output:

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

result:

ok correct

Test #29:

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

input:

1 766
1 0 1 0 1 2 0 3 0 0 1 2 0 1 0 2 0 1 1 4 1 3 0 0 2 2 2 2 1 1 1 2 1 2 0 1 2 1 2 0 4 0 1 0 0 0 0 0 1 2 0 0 1 2 2 4 1 1 1 2 0 1 3 2 1 0 0 0 0 1 0 1 0 1 2 2 3 0 3 1 0 0 1 1 0 1 4 3 1 2 0 3 0 1 1 2 1 2 1 1 2 0 1 0 0 2 1 1 2 0 2 0 0 1 1 3 1 0 1 2 1 0 0 3 2 0 0 2 2 0 0 1 0 1 1 1 2 0 2 3 1 1 1 3 0 0 2 ...

output:

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

result:

ok correct

Subtask #4:

score: 0
Wrong Answer

Test #30:

score: 0
Wrong Answer
time: 0ms
memory: 3572kb

input:

2 2
0 0
0 0

output:

0 0 

result:

wrong output format Unexpected end of file - int32 expected

Subtask #5:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 0ms
memory: 3536kb

input:

2 4
253 431 207 483
243 65 289 13

output:

205 27 251 -25 

result:

wrong output format Unexpected end of file - int32 expected

Subtask #6:

score: 0
Wrong Answer

Test #58:

score: 0
Wrong Answer
time: 34ms
memory: 8112kb

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:

-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 ...

result:

wrong output format Unexpected end of file - int32 expected

Subtask #7:

score: 0
Wrong Answer

Test #68:

score: 0
Wrong Answer
time: 0ms
memory: 3652kb

input:

2 2
5 52
52 5

output:

52 5 

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:

0%