QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871191#9232. Mathematics ChampionshipsZhangYiDeAC ✓19ms3664kbC++23486b2025-01-25 19:49:022025-01-25 19:49:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

2
5 -1 2 -10

output:

7

result:

ok 1 number(s): "7"

Test #2:

score: 0
Accepted
time: 19ms
memory: 3500kb

input:

16
-609613 -130770 -74903 -953063 -673733 -7782 -141033 -99062 -498219 -788730 -18046 -531998 -902273 -849783 -790670 -400728 -647376 -304831 -612699 -804475 -583199 -556118 -210732 -764688 -261754 -909084 -204446 -122287 -599939 -883646 -162399 -604178 -457433 -86693 -599542 -859403 -144631 -541667...

output:

-32

result:

ok 1 number(s): "-32"

Test #3:

score: 0
Accepted
time: 16ms
memory: 3456kb

input:

16
1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1...

output:

65536000000

result:

ok 1 number(s): "65536000000"

Test #4:

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

input:

16
956610 775719 1 1 1 289220 430357 1 1 1 901711 370086 1 231850 1 694324 456633 830605 1 1 1 1 361879 1 1 115942 711009 901045 431786 689181 1 1 300941 616860 1 862030 437774 659255 634468 289820 776743 1 399950 1 1 1 426646 1 794365 1 1 531556 692680 183131 131337 1 906728 1 1 1 431810 259229 959...

output:

18128755275

result:

ok 1 number(s): "18128755275"

Test #5:

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

input:

1
1000000 -1000000

output:

1000000

result:

ok 1 number(s): "1000000"

Test #6:

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

input:

16
799280 -1 -579388 981250 -1 -367784 -802739 -513820 -1 -154743 -859137 -863118 -1 -1 -752166 963568 -309391 520849 -1 -1 -650988 -1 -1 -291059 -1 -777171 -548021 -1 860276 -400689 -768540 333449 -515876 577481 -304216 688036 -169191 -938544 -170475 -865521 -534817 -285560 -616871 -1 -883739 98110...

output:

10762434683

result:

ok 1 number(s): "10762434683"

Test #7:

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

input:

3
-3 3 -8 6 3 5 1 6

output:

20

result:

ok 1 number(s): "20"

Test #8:

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

input:

16
-1000000 -1000000 157069 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 -1000000 1000000 -10...

output:

8192000000

result:

ok 1 number(s): "8192000000"

Test #9:

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

input:

2
-10 -1 -1 4

output:

4

result:

ok 1 number(s): "4"

Test #10:

score: 0
Accepted
time: 16ms
memory: 3456kb

input:

16
531786 -538214 -1 -1 -806026 -1 -1 -1 -166687 770780 -1 -1 826558 -573647 -173646 760902 -500989 -1 960858 -772235 -459649 -208907 -240433 908671 -1 -598620 994181 844772 665321 -1 -625828 607991 -939892 -603779 -1 873957 515537 -1 -1 -185758 -542716 -437562 -482752 -380216 -1 -982637 -253128 -80...

output:

10711612870

result:

ok 1 number(s): "10711612870"

Test #11:

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

input:

1
-1000000 1000000

output:

1000000

result:

ok 1 number(s): "1000000"

Test #12:

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

input:

16
-997837 -999615 -998074 -999864 -998085 -999969 -997521 -997238 -998040 -999944 -1 -998765 -999760 -1 998776 999322 -1 -997218 -998326 -999294 -1 -998411 -999921 999877 -1 999503 -997552 -998945 -997148 -998375 -998557 -998528 -999450 -999749 -998753 -998558 -998848 -997713 -998868 -998149 -99816...

output:

8185660180

result:

ok 1 number(s): "8185660180"

Test #13:

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

input:

2
0 0 0 0

output:

0

result:

ok 1 number(s): "0"

Test #14:

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

input:

16
350443 -850456 431600 -674407 162335 -182940 479099 423713 195742 -865360 -28767 17193 -805193 339890 -683086 -322658 -496384 -423276 -400810 370941 126154 127672 -659261 598479 -839949 -459555 -20300 -342880 -197208 -71289 88239 -410944 993724 -576136 -424418 209959 57731 -50476 -457803 293228 3...

output:

16419897538

result:

ok 1 number(s): "16419897538"

Test #15:

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

input:

1
-1000000 -1

output:

-1

result:

ok 1 number(s): "-1"

Test #16:

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

input:

16
292680 129496 900168 -685439 482290 -744485 -722979 -593570 -348326 -556035 -567680 -499436 -354874 389141 -600188 -585476 505282 -482845 553442 427396 -416316 243481 523153 -995399 -214998 -754241 -159472 975192 -222126 965063 -447712 -766377 -377092 -547166 -570248 -380716 953086 787167 -622113...

output:

16373277131

result:

ok 1 number(s): "16373277131"

Test #17:

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

input:

2
5 -1 2 -10

output:

7

result:

ok 1 number(s): "7"

Test #18:

score: 0
Accepted
time: 13ms
memory: 3584kb

input:

16
1 1 1 362364 1 1 1 124987 1 977751 1 1 854718 863032 1 1 1 1 117844 399514 164272 369824 652290 315860 1 1 1 504377 1 153633 701173 1 417229 1 924440 577164 1 509264 1 1 967497 704189 443305 621385 1 1 125530 1 730174 1 1 465523 1 666774 1 807515 120552 1 1 251985 1 879448 153879 1 1 190756 1 1 4...

output:

18138651257

result:

ok 1 number(s): "18138651257"

Test #19:

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

input:

1
1000000 7

output:

1000007

result:

ok 1 number(s): "1000007"

Extra Test:

score: 0
Extra Test Passed