QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#274430 | #7602. AtCoder Quality Problem | ZhangYiDe | TL | 1019ms | 196056kb | C++20 | 1.4kb | 2023-12-03 15:30:15 | 2023-12-03 15:30:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 24072kb
input:
2 -5 9 9 -5 10 -8 -6 3
output:
-16
result:
ok 1 number(s): "-16"
Test #2:
score: 0
Accepted
time: 0ms
memory: 23952kb
input:
3 -15 19 19 -5 30 -3 -16 13 29 -6 -14 -7 24 -5 18 11
output:
-22
result:
ok 1 number(s): "-22"
Test #3:
score: 0
Accepted
time: 0ms
memory: 24068kb
input:
0 -129363358 227605714
output:
-129363358
result:
ok 1 number(s): "-129363358"
Test #4:
score: 0
Accepted
time: 0ms
memory: 23900kb
input:
1 -120923470 -355154745 -18478014 104068715
output:
-476078215
result:
ok 1 number(s): "-476078215"
Test #5:
score: 0
Accepted
time: 4ms
memory: 23908kb
input:
3 41 38 35 12 5 15 42 18 37 35 39 13 10 14 11 19
output:
173
result:
ok 1 number(s): "173"
Test #6:
score: 0
Accepted
time: 0ms
memory: 24080kb
input:
1 447411177 999962412 75398577 1000000000
output:
1075360989
result:
ok 1 number(s): "1075360989"
Test #7:
score: 0
Accepted
time: 4ms
memory: 23900kb
input:
2 541967866 999946894 999908551 999933425 802281802 999999999 999999998 1000000000
output:
3541756736
result:
ok 1 number(s): "3541756736"
Test #8:
score: 0
Accepted
time: 0ms
memory: 23864kb
input:
2 -591907002 -631584280 -82130700 -47139019 394493455 342618764 522430575 -795985943
output:
-1497046650
result:
ok 1 number(s): "-1497046650"
Test #9:
score: 0
Accepted
time: 0ms
memory: 24028kb
input:
3 -171206159 936370675 -234770959 385985985 -595014568 -767200376 -547513228 752635461 -447827147 893784076 509717332 462775018 -988016389 619744902 288557026 -943739157
output:
-1185562884
result:
ok 1 number(s): "-1185562884"
Test #10:
score: 0
Accepted
time: 0ms
memory: 23952kb
input:
3 393401589 999934081 999999994 999965844 999999997 999999998 999999999 1000000000 189681919 999999995 999975199 999999996 999930168 999954712 999974096 999931888
output:
7189347907
result:
ok 1 number(s): "7189347907"
Test #11:
score: 0
Accepted
time: 0ms
memory: 23912kb
input:
4 115735040 214224088 -876138468 -681488084 248861494 -598540262 -611821329 -977877438 -637747543 -894741939 436827787 989876970 -712800464 894435280 -884786500 658210126 403466625 890188370 251116721 -75373484 -174752803 66881915 -49264751 -926462665 750597037 -207794593 -286674914 501841084 650906...
output:
-3741385539
result:
ok 1 number(s): "-3741385539"
Test #12:
score: 0
Accepted
time: 0ms
memory: 24084kb
input:
4 707006165 999931480 999910977 999963510 999999993 999999994 999999995 999999996 999999986 999938199 999959041 999936240 999999997 999999998 999999999 1000000000 234008653 999999987 999999989 999999990 999940340 999962150 999987449 999927085 999924481 999999988 999999991 999999992 999923963 9999649...
output:
15233229009
result:
ok 1 number(s): "15233229009"
Test #13:
score: 0
Accepted
time: 0ms
memory: 23900kb
input:
5 -372484001 -718797873 -71733037 -305985877 -302390580 688580065 953829936 -174152748 -354796150 -208366118 602432769 -109135999 -141629363 629250437 148469410 -922110400 6838005 -548964926 755884083 -118488699 -47397060 -170218328 147982077 176640586 -415212239 -469211052 -615779993 -93655987 8812...
output:
-6602458211
result:
ok 1 number(s): "-6602458211"
Test #14:
score: 0
Accepted
time: 0ms
memory: 23908kb
input:
5 944197405 999901843 999980099 999972468 999970983 999939516 999964620 999955043 999966531 999910408 999960486 999966672 999907993 999906157 999988296 999901671 999999973 999999974 999999975 999999976 999903220 999900152 999977588 999942146 999940008 999900147 999923067 999910181 999958604 99998124...
output:
31035576167
result:
ok 1 number(s): "31035576167"
Test #15:
score: 0
Accepted
time: 0ms
memory: 23920kb
input:
6 894160753 -40765257 756192742 -715210981 -665161889 689390758 -971118137 130413899 705869256 -985182887 126364860 -437546266 -680392242 -25088398 280403740 -569342321 398323529 -412037831 901344037 781760330 508120205 -52595827 363978553 164811685 -526064553 -838271660 33559727 201919862 251549007...
output:
-7198177781
result:
ok 1 number(s): "-7198177781"
Test #16:
score: 0
Accepted
time: 0ms
memory: 23916kb
input:
6 217318425 999907779 999999953 999999954 999970578 999982200 999999955 999999956 999962475 999988230 999999957 999999958 999981520 999964252 999999959 999999960 999999945 999999946 999999961 999999962 999999947 999999948 999999963 999999964 999999949 999999950 999999965 999999966 999999951 99999995...
output:
63214307294
result:
ok 1 number(s): "63214307294"
Test #17:
score: 0
Accepted
time: 0ms
memory: 23992kb
input:
7 -144387272 -925935230 -66023825 -308291 -103826832 -651132608 -862525528 -700882982 -610718651 -134354615 349366652 871644839 -502522794 -337967790 860671673 293466450 355597611 909572949 662911151 709998670 -676854046 -588326037 699018047 -76127379 -393184583 493322537 -21687712 -717610923 -81415...
output:
-9269231105
result:
ok 1 number(s): "-9269231105"
Test #18:
score: 0
Accepted
time: 2ms
memory: 23940kb
input:
7 251688338 999999881 999970651 999999882 999999875 999999883 999983411 999999884 999988012 999985810 999939167 999913756 999906813 999959286 999927279 999948318 999999905 999999906 999999907 999999908 999999909 999999910 999999911 999999912 999999913 999999914 999999915 999999916 999999917 99999991...
output:
127245709911
result:
ok 1 number(s): "127245709911"
Test #19:
score: 0
Accepted
time: 0ms
memory: 23932kb
input:
8 207244104 352928581 595582159 -658691190 -680536706 665214825 169505491 141788883 777149294 -263847939 -736943175 666388453 -842907171 817429097 -876764676 -377531542 -177010042 785508010 -200115038 -210541742 -448535673 298236811 946322466 423814919 -31291725 -574157728 330929237 -985883142 83694...
output:
-30801112748
result:
ok 1 number(s): "-30801112748"
Test #20:
score: 0
Accepted
time: 0ms
memory: 23860kb
input:
8 713292830 999918475 999999753 999999754 999999749 999999750 999999755 999999756 999999746 999992936 999999757 999999758 999999751 999999752 999999759 999999760 999999809 999999810 999999811 999999812 999999813 999999814 999999815 999999816 999999817 999999818 999999819 999999820 999999821 99999982...
output:
255700973944
result:
ok 1 number(s): "255700973944"
Test #21:
score: 0
Accepted
time: 0ms
memory: 23940kb
input:
9 -23216288 -101055911 -91428725 -661088694 530937006 64028446 -541909873 291256859 -637443836 -154947518 685355402 -479092017 -641967318 -726287649 676907808 -572113683 988507974 -338843538 64219942 -143902342 -148000933 889439166 758116142 241928355 133269330 -22268978 -315605935 120977797 -540147...
output:
-35604016904
result:
ok 1 number(s): "-35604016904"
Test #22:
score: 0
Accepted
time: 4ms
memory: 24060kb
input:
9 192582297 999999553 999999505 999999554 999999493 999999555 999999506 999999556 999999490 999999557 999999507 999999558 999999494 999999559 999999508 999999560 999910046 999999561 999999509 999999562 999981227 999999563 999999510 999999564 999955869 999999565 999999511 999999566 999970957 99999956...
output:
511168301431
result:
ok 1 number(s): "511168301431"
Test #23:
score: 0
Accepted
time: 0ms
memory: 24392kb
input:
10 795041539 829509923 -249578193 -898238555 -755035541 -797835372 -733761319 257444053 -277239866 -110362759 792666656 -175090482 310078276 663705137 890400163 -451523697 322282342 593839238 -374508555 663531047 -483993040 -391318123 -113392902 -195225337 521092470 -218446024 719218988 -794676185 9...
output:
-52128621268
result:
ok 1 number(s): "-52128621268"
Test #24:
score: 0
Accepted
time: 0ms
memory: 24160kb
input:
10 695810379 999998993 999998979 999998994 999933898 999998995 999911832 999998996 999915763 999977739 999954018 999906970 999952663 999950268 999961047 999973389 999990184 999939875 999964464 999949191 999997381 999943659 999985836 999966469 999991549 999987039 999941159 999989167 999933028 9999708...
output:
1023246048132
result:
ok 1 number(s): "1023246048132"
Test #25:
score: 0
Accepted
time: 2ms
memory: 24552kb
input:
11 830338346 -716214801 240487314 -388548276 624625643 589699654 -120703512 738975171 -9904612 -378515119 149409013 -412716920 -770553148 583609512 98197701 -202853463 439334659 397471079 -693751438 -113647209 392178075 -679647920 854205681 439400304 696437421 -115464157 133391955 548341022 -1083505...
output:
-71326375263
result:
ok 1 number(s): "-71326375263"
Test #26:
score: 0
Accepted
time: 0ms
memory: 24668kb
input:
11 754311846 999925123 999922293 999902919 999998017 999998018 999950673 999989477 999998465 999998466 999998467 999998468 999998469 999998470 999998471 999998472 999995432 999968324 999970652 999905570 999998019 999998020 999964139 999939228 999998473 999998474 999998475 999998476 999998477 9999984...
output:
2046980679750
result:
ok 1 number(s): "2046980679750"
Test #27:
score: 0
Accepted
time: 0ms
memory: 25176kb
input:
12 -629609758 153133493 554278078 -448958210 -667001452 -260735419 494781103 -184067228 821942841 -727707610 -613709782 696971046 441703668 314901318 -233909550 308596157 -65323079 501319635 -792725433 430769771 -190039065 -302106461 764998486 -72418004 -905621330 -23250569 138536454 -666189409 9315...
output:
-127968499400
result:
ok 1 number(s): "-127968499400"
Test #28:
score: 0
Accepted
time: 0ms
memory: 25236kb
input:
12 578706068 999996929 999978846 999996930 999997953 999997954 999997955 999997956 999995921 999996931 999995922 999996932 999997957 999997958 999997959 999997960 999952201 999996933 999901961 999996934 999997961 999997962 999997963 999997964 999995923 999996935 999995924 999996936 999997965 9999979...
output:
4094989640990
result:
ok 1 number(s): "4094989640990"
Test #29:
score: 0
Accepted
time: 4ms
memory: 26580kb
input:
13 236583660 585387958 105301171 724144917 -609103080 495366991 -358807165 -878160326 161407816 794625522 -155326537 760327791 -731031854 -966205840 -668966638 -781890589 -881349887 -297305615 987536310 -36708034 768603284 -841637616 -439781711 -80623509 -720914171 740477481 -54630493 -475682883 327...
output:
-146961151951
result:
ok 1 number(s): "-146961151951"
Test #30:
score: 0
Accepted
time: 0ms
memory: 26456kb
input:
13 158497288 999991873 999917593 999991874 999992321 999992322 999992323 999992324 999991841 999991875 999991842 999991876 999992325 999992326 999992327 999992328 999892793 999941726 999945457 999913001 999992329 999992330 999992331 999992332 999964048 999935952 999971360 999931206 999992333 9999923...
output:
8190645033773
result:
ok 1 number(s): "8190645033773"
Test #31:
score: 0
Accepted
time: 3ms
memory: 29136kb
input:
14 -549860664 -749043103 700176403 -829721574 785397043 -323074105 303034582 689198068 -288423594 451781618 -851488586 67754491 -375664810 424138322 -59151694 -31737491 522091976 -568003553 169224206 -225333894 -822773961 332529405 888457827 -799034285 -790170355 822536715 323347697 567795531 517805...
output:
-296349808682
result:
ok 1 number(s): "-296349808682"
Test #32:
score: 0
Accepted
time: 11ms
memory: 33244kb
input:
14 502141495 999983633 999984129 999984130 999981283 999983634 999984131 999984132 999917453 999950388 999984133 999984134 999932825 999939007 999984135 999984136 999983618 999983635 999984137 999984138 999929664 999983636 999984139 999984140 999937983 999978541 999984141 999984142 999938156 9999526...
output:
16382541018816
result:
ok 1 number(s): "16382541018816"
Test #33:
score: 0
Accepted
time: 35ms
memory: 34100kb
input:
15 435779435 -804044792 63270752 751429204 999360549 -819723617 497085131 843187937 -714303244 980602691 -337184759 -182828304 -691392771 -664663928 412463179 -307648329 -622533725 129381927 803366798 799403297 -343158940 -653695589 379548638 -985131261 302836868 430998325 -138647461 -839090001 1772...
output:
-314172975139
result:
ok 1 number(s): "-314172975139"
Test #34:
score: 0
Accepted
time: 25ms
memory: 34316kb
input:
15 267227278 999971329 999967489 999971330 999964950 999971331 999967490 999971332 999909324 999971333 999967491 999971334 999896958 999971335 999967492 999971336 999925826 999971337 999900999 999971338 999898035 999971339 999871939 999971340 999913678 999971341 999882923 999971342 999922959 9999713...
output:
32764990261313
result:
ok 1 number(s): "32764990261313"
Test #35:
score: 0
Accepted
time: 68ms
memory: 44520kb
input:
16 542007866 -811151029 -242294542 -860147826 483523226 288361074 -849837659 -325916739 -320594379 -991915917 69105311 424564756 -625897193 149266301 724770728 -610207347 -199075564 -379837951 616671979 635852989 239882048 -866225153 -452041640 133120494 -434341753 -789151665 -28901271 -9863858 -499...
output:
-712284593628
result:
ok 1 number(s): "-712284593628"
Test #36:
score: 0
Accepted
time: 58ms
memory: 44552kb
input:
16 411834594 999941143 999930015 999893499 999934466 999894663 999915669 999936077 999934469 999868882 999919410 999961688 999934470 999883641 999850571 999914378 999950849 999878781 999950850 999905628 999950851 999956969 999950852 999874731 999950853 999892826 999950854 999908020 999950855 9999386...
output:
65529987471191
result:
ok 1 number(s): "65529987471191"
Test #37:
score: 0
Accepted
time: 151ms
memory: 64860kb
input:
17 -687419779 604581475 570934026 -737268297 -730125564 -509601389 -200842742 -937470803 -21031005 -851317361 733280942 -17360491 880209887 155375485 -189285746 -116080863 -169576817 -592984143 -460058089 620543663 -53790534 -680263820 536082015 -731540485 520342179 395552790 868441050 261797620 529...
output:
-849782635351
result:
ok 1 number(s): "-849782635351"
Test #38:
score: 0
Accepted
time: 169ms
memory: 64860kb
input:
17 607413967 999868961 999838741 999868962 999818035 999841505 999852162 999866380 999809629 999813982 999793390 999793568 999782905 999872222 999837299 999775066 999868945 999868963 999868946 999868964 999791002 999830694 999802334 999853199 999832768 999859380 999781633 999849161 999862686 9998336...
output:
131056174205913
result:
ok 1 number(s): "131056174205913"
Test #39:
score: 0
Accepted
time: 353ms
memory: 109928kb
input:
18 -404347904 -563479136 -998527427 -644975753 -519503281 520509994 -987118409 373989751 864948979 891910424 674853317 72152020 238941656 -579209967 628395071 -682031626 673846274 464213390 -787632170 -11588432 825191381 -447398842 314329661 177963751 539510997 -561094489 874321903 -337311101 348910...
output:
-994595724413
result:
ok 1 number(s): "-994595724413"
Test #40:
score: 0
Accepted
time: 325ms
memory: 109736kb
input:
18 744343156 999737861 999738881 999738882 999672477 999711167 999738883 999738884 999737921 999737922 999738885 999738886 999737923 999737924 999738887 999738888 999770625 999770626 999770627 999770628 999770629 999770630 999770631 999770632 999770633 999770634 999770635 999770636 999770637 9997706...
output:
262096274858750
result:
ok 1 number(s): "262096274858750"
Test #41:
score: 0
Accepted
time: 1019ms
memory: 196056kb
input:
19 -608239073 784508875 -799428268 767950097 516977312 905725004 694575710 -214886982 255870827 -252125674 -721471698 544640658 83812112 -114378745 -459599103 -9375995 -585748095 -905464169 524233748 87424576 961602524 -335634745 -123584178 777667070 -221960488 824087480 488503286 -797563743 -478111...
output:
-1459863979608
result:
ok 1 number(s): "-1459863979608"
Test #42:
score: 0
Accepted
time: 977ms
memory: 195944kb
input:
19 838332886 999434326 999465224 999473593 999475969 999475970 999406953 999464807 999556545 999510711 999553451 999596651 999588210 999591209 999556041 999532455 999443925 999492873 999459217 999463788 999456104 999502231 999479574 999456139 999604167 999540130 999544034 999571047 999562495 9995331...
output:
524123729899564
result:
ok 1 number(s): "524123729899564"
Test #43:
score: -100
Time Limit Exceeded
input:
20 867907551 976422469 7913317 248847503 272135804 -950200258 -148056177 762095305 -656495846 -48907951 906407083 33363245 256786642 -550711091 101180572 -588335674 -565254278 -128725032 -246588704 -12709367 -111881285 477339467 -593842452 896822425 -356809371 -572052480 -422941941 -708178507 -40742...