QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#419614#8645. Growing Vegetables is Fun 5egypt_ioi2024_02#9 1ms3816kbC++201.1kb2024-05-24 04:17:002024-05-24 04:17:01

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 4
Accepted

Test #1:

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

input:

5
71039844 102827355 217531548 220229557 237972610 314010999 309303025 282414480 227324750 127910276
355992665 573821998 974848115 193721993 786455947
602158296 281786121 321727541 140763116 455641294

output:

660837116

result:

ok single line: '660837116'

Test #2:

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

input:

4
1705 9199 9245 9297 9785 8486 3596 2031
356 2834 9555 4667
1881 4772 9778 4863

output:

4427

result:

ok single line: '4427'

Test #3:

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

input:

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

output:

6

result:

ok single line: '6'

Test #4:

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

input:

2
2 2 10 6
9 2
9 2

output:

3

result:

ok single line: '3'

Test #5:

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

input:

1
349142605 778700270
168051580
502698453

output:

276001817

result:

ok single line: '276001817'

Test #6:

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

input:

5
17 17 18 18 19 20 19 19 18 17
16 21 17 15 22
16 15 12 17 19

output:

5

result:

ok single line: '5'

Test #7:

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

input:

5
4 7 8 8 9 9 8 5 5 4
8 5 6 6 9
7 7 8 1 7

output:

3

result:

ok single line: '3'

Test #8:

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

input:

4
6 7 8 8 10 10 8 7
10 9 4 6
6 6 8 7

output:

2

result:

ok single line: '2'

Test #9:

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

input:

5
1 285389468 292069311 556395360 725450787 931668868 448264980 368730609 214990111 201747487
1000000000 1000000000 1000000000 1000000000 1000000000
1000000000 1000000000 1000000000 1000000000 1000000000

output:

999999999

result:

ok single line: '999999999'

Test #10:

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

input:

5
662886918 684753078 783767220 920694140 923464013 1000000000 885337163 779952619 739901312 687764518
1 1 1 1 1
1 1 1 1 1

output:

999999999

result:

ok single line: '999999999'

Test #11:

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

input:

5
463408857 467609229 473997928 477395329 481525188 519068288 507259005 493795251 483097019 477045791
467609229 481525188 463408857 477395329 473997928
483097019 493795251 507259005 519068288 477045791

output:

0

result:

ok single line: '0'

Test #12:

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

input:

3
1 3 5 6 4 2
2 3 4
5 6 7

output:

1

result:

ok single line: '1'

Subtask #2:

score: 5
Accepted

Dependency #1:

100%
Accepted

Test #13:

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

input:

10
773135427 774332767 785123517 817394834 818143902 821137578 833844052 845124168 848733309 857691141 862029826 854157076 847018323 843060840 826855175 800318737 796404138 789256510 783695157 776861639
403498898 659393782 937645583 797482218 969577314 91539882 712627349 314393029 277704717 44148171...

output:

748030905

result:

ok single line: '748030905'

Test #14:

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

input:

9
2058 3355 3467 4778 5458 5969 6041 6118 7343 8215 8122 6915 6167 6012 5563 4897 4206 2499
4946 4522 9879 3499 4152 4279 3059 3530 7545
5485 9668 3847 1946 2897 5648 3124 8377 9390

output:

2259

result:

ok single line: '2259'

Test #15:

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

input:

8
1 1 2 5 6 7 8 10 10 7 5 5 5 4 2 1
1 7 4 2 5 2 7 9
7 9 8 1 6 8 4 10

output:

2

result:

ok single line: '2'

Test #16:

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

input:

10
28 29 31 31 33 34 37 37 39 40 50 49 48 42 39 34 33 30 29 28
34 34 26 29 35 32 32 23 31 33
47 40 38 50 47 41 44 40 30 30

output:

5

result:

ok single line: '5'

Test #17:

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

input:

10
2 4 6 7 10 12 14 17 19 21 21 20 16 12 12 11 10 9 6 5
6 16 21 2 5 8 10 12 14 15
2 16 4 3 20 13 13 18 3 19

output:

4

result:

ok single line: '4'

Test #18:

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

input:

9
1 1 1 2 2 3 3 3 5 5 4 3 3 3 2 2 2 1
5 1 8 8 1 3 1 1 2
2 2 1 3 1 4 2 5 5

output:

3

result:

ok single line: '3'

Test #19:

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

input:

8
15 15 15 16 16 17 18 19 19 18 17 17 17 17 16 15
11 12 24 13 22 15 13 15
11 21 21 14 9 16 17 18

output:

6

result:

ok single line: '6'

Test #20:

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

input:

10
1 13280914 96613242 127812270 158437352 259641463 436482346 505230087 549623141 554037556 590408520 388492212 334223975 312683258 264691487 217880860 193182063 174018234 171453258 147939223
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 10000000...

output:

999999999

result:

ok single line: '999999999'

Test #21:

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

input:

10
326424629 353378674 597744285 634314932 677996941 757848432 769253696 942511855 949304023 988319620 1000000000 868204345 842188353 821725662 716151066 631684281 559658741 511768003 456818334 357276475
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1

output:

999999999

result:

ok single line: '999999999'

Test #22:

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

input:

10
57143744 133393297 398910072 401484623 474217555 757601927 774658022 800636343 849390123 876553996 920840636 769125109 719072497 523840378 481733548 355770208 344383282 310868559 234051801 173516705
133393297 474217555 173516705 234051801 398910072 57143744 310868559 757601927 344383282 401484623...

output:

0

result:

ok single line: '0'

Test #23:

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

input:

10
63403651 210510858 210510858 210510858 210510858 210510858 210510858 210510858 210510858 210510858 225130956 210510858 210510858 210510858 210510858 210510858 210510858 210510858 210510858 210510858
236486230 236486230 236486230 236486230 236486230 89379023 236486230 236486230 236486230 236486230...

output:

25975372

result:

ok single line: '25975372'

Test #24:

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

input:

10
1 3 5 7 9 11 13 15 17 19 20 18 16 14 12 10 8 6 4 2
2 3 4 5 6 7 8 9 10 11
12 13 14 15 16 17 18 19 20 21

output:

1

result:

ok single line: '1'

Test #25:

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

input:

9
1 3 5 7 9 11 13 15 17 18 16 14 12 10 8 6 4 2
2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19

output:

1

result:

ok single line: '1'

Subtask #3:

score: 0
Time Limit Exceeded

Dependency #2:

100%
Accepted

Test #26:

score: 0
Time Limit Exceeded

input:

2000
190093831 190101306 190130208 190130264 190130464 190142913 190155510 190186226 190187425 190239978 190246876 190313521 190318845 190368652 190389086 190397011 190398293 190400652 190406542 190410139 190449447 190459539 190491822 190510982 190539531 190561710 190579926 190592705 190592734 19059...

output:


result:


Subtask #4:

score: 0
Time Limit Exceeded

Test #41:

score: 0
Time Limit Exceeded

input:

300000
619 2319 3493 3715 4353 4926 8022 14367 18919 23666 25565 25582 27245 27303 28880 29568 29918 31815 34986 36861 40022 40147 47041 52120 55624 57816 58553 59319 60056 63512 66442 68907 68915 69471 69714 71129 76758 76761 77220 78196 84558 87950 88697 88782 89810 90113 92091 95040 97273 99148 1...

output:


result:


Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

0%