QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#309479#8133. When Anton Saw This Task He Reacted With 😩ucup-team2818#AC ✓525ms72140kbC++147.1kb2024-01-20 17:39:492024-01-20 17:39:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 3
x 2 3
v 1 0 1
x 4 5
v 0 2 1
v 1 1 1
4 1 2 3
5 0 1 1
4 0 2 2

output:

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

result:

ok 9 numbers

Test #2:

score: 0
Accepted
time: 525ms
memory: 67420kb

input:

199999 100000
x 137025 65661
v 572518668 158967010 74946561
x 129836 192657
x 141948 187810
v 574918069 328924434 141474729
x 143312 111002
x 52772 148497
v 922857701 690080961 651915759
v 656198340 28002884 129579416
v 639893144 265359784 646791226
v 796871409 411409966 598676495
v 882562617 224394...

output:

-605123795 -224477738 387297348
-238284787 981774500 -870231856
294611811 980011608 533642029
-593864779 745296852 53493560
404565501 828869760 78021156
592494858 647751304 881427733
-808225886 515243135 518180555
628180500 509984554 -740814218
13737245 352087791 917410487
-66193044 366591227 479931...

result:

ok 300000 numbers

Test #3:

score: 0
Accepted
time: 451ms
memory: 66116kb

input:

199999 100000
x 154525 80092
v 450407262 725458410 590777520
x 24720 135901
v 719242117 114943104 186796011
v 382530926 89156744 943939337
x 183376 26042
x 109984 157873
x 151637 150600
x 4115 27454
x 163135 92648
x 16764 33212
v 849210403 945083972 689295397
v 471196117 68587428 225597765
x 24643 5...

output:

-321176892 -1730057 449166851
-187841261 -740047511 -144784620
410756156 253348518 -85579882
-671109463 519245783 -75715594
-680876795 -461355816 506214109
-513490823 -119198571 -225839405
-575324301 152084658 -480903896
1207902 -649457191 -677423276
-221950475 699474926 -287129823
871858473 -529746...

result:

ok 300000 numbers

Test #4:

score: 0
Accepted
time: 340ms
memory: 66884kb

input:

199999 100000
x 72889 193806
x 35339 33069
v 314802407 406980523 492377265
x 108307 60027
x 144922 140917
v 328481079 117663280 644171354
v 482028404 951751561 166221217
v 936461869 436114879 421819757
x 152919 99965
x 61168 150607
v 56403640 743462679 134896557
v 24809217 462947115 966139991
v 7828...

output:

23709876 380448367 629159667
-237565933 -458875163 611778104
-883317666 -344551438 -58366939
-324044883 -693498618 -454120550
-44444241 186017361 -949043816
327282782 871001677 293980713
588783157 -496113704 -807680056
102680906 993889016 -34765598
510012481 105416897 281770975
811082806 367139818 4...

result:

ok 300000 numbers

Test #5:

score: 0
Accepted
time: 323ms
memory: 68164kb

input:

199999 100000
x 134204 79203
v 152855933 152545887 271660214
v 393332175 182708769 115884220
v 731792305 965028257 676889584
x 89631 14495
x 142016 85686
v 600051847 172947969 906920949
v 846126215 214556203 657929902
x 125721 133526
x 93179 35713
v 330716449 450417250 611411649
v 114397688 58644961...

output:

-858646737 375474977 14619793
-108915893 -918516919 -634540722
397351102 -120282751 -569198163
588368345 -178818454 502148739
520578911 186408072 484373545
-355756 -181710037 -659833074
-664078084 -710032769 -389991713
509280845 -635271961 286415695
363396960 -119363102 3658455
711270872 94816531 -8...

result:

ok 300000 numbers

Test #6:

score: 0
Accepted
time: 270ms
memory: 66752kb

input:

199999 100000
x 29842 60343
x 22382 27649
v 148997533 411153785 529195552
v 831453378 856711025 439562917
x 183061 152107
v 208562249 845550020 248974502
x 8708 152913
v 901332053 480035531 424365358
v 120556946 620074725 884675784
v 493886564 455460926 851190410
x 63346 64739
x 35246 36255
v 762936...

output:

236797322 190218414 -927685092
-336478455 -731887881 -516614332
-587276683 -384515050 804008156
92638320 37926778 -915320148
357869883 232766711 -418635821
-306542271 -873375751 187367212
-760633664 608489848 -417139943
-149627621 -90371214 -138436462
-383619738 454674844 -324614686
-512459622 74392...

result:

ok 300000 numbers

Test #7:

score: 0
Accepted
time: 248ms
memory: 67148kb

input:

199999 100000
x 179471 175117
x 189060 178495
x 20142 58065
x 22916 150184
v 704047412 186112247 660817663
v 761554808 199099716 794321264
v 362925435 508140595 251556541
v 65674025 717152823 157775106
v 325965317 977108704 50644678
v 566946741 833186394 771714200
v 996708965 76780827 625429369
v 85...

output:

365258325 -892414579 612397830
731509055 576900445 -334467153
-444725676 -582790078 7683807
-530113104 -421018422 -484650068
-782654117 861146274 -185423961
-328258557 -768757519 564691763
929231866 520228049 -223634605
29950289 569366391 -277172238
644573107 -484529715 -443786200
-270237152 -574397...

result:

ok 300000 numbers

Test #8:

score: 0
Accepted
time: 247ms
memory: 67296kb

input:

199999 100000
x 73506 171332
x 135330 187765
v 308206068 679940956 278078069
v 442448744 196158033 738117032
x 194709 115786
v 208526122 936976225 340056181
x 42663 43401
x 55484 199464
v 865443128 131903961 74265613
x 44659 44773
x 32199 18455
v 986118756 284329619 244212114
v 793747964 649179736 4...

output:

-568527314 868308596 175018519
966246118 532451840 773132006
-541158255 631788280 989689243
550574851 6706768 -581628454
285141084 -492917864 -81725651
-540778964 653530244 951605771
614211832 767828057 44273794
-300047713 494937773 -898906555
-279741119 -576166316 151379051
-977724006 707143833 -21...

result:

ok 300000 numbers

Test #9:

score: 0
Accepted
time: 241ms
memory: 69256kb

input:

199999 100000
x 109220 170287
v 563361501 367416904 98790213
x 31431 96958
x 99594 159052
x 95382 129615
v 61965807 547448247 405891792
v 443530416 578856323 588763197
v 761021716 795533831 212530056
v 370964907 391812631 255457982
x 49713 153066
x 141543 111694
v 144135957 614962153 284136518
x 416...

output:

433293962 -661330106 -250875550
992117520 -989063889 -838628109
483825959 496735833 -33736634
-85748983 737285784 -402805456
467123496 44306423 562070292
-94756115 -955272710 -936828694
269853145 336741491 -433105475
926999098 134871683 277614816
644727031 -521919528 69621281
984868613 -885653793 -3...

result:

ok 300000 numbers

Test #10:

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

input:

3 1
x 2 3
v 998244352 998244352 998244352
v 0 0 0
3 1 2 0

output:

-998244351 998244352 998244352

result:

ok 3 number(s): "2 998244352 998244352"

Test #11:

score: 0
Accepted
time: 249ms
memory: 69228kb

input:

199999 100000
x 199465 1690
x 70268 106693
v 194793703 729830314 457557419
x 64673 6910
v 755452906 141328541 558160677
v 725017524 158685295 201414156
x 161801 27226
x 181414 47025
v 387724146 819109666 514628998
v 252532326 97757436 828777580
v 200868967 692540096 706977766
v 300419109 2053530 824...

output:

627210517 640945891 -597759713
-692602867 -105185528 -898351186
735729088 -192648820 -715206562
-621173639 -640281451 -661458804
835938680 -363549622 22388934
-504547421 612552793 -481299119
963890355 517530875 48223226
-782926273 742583745 -618453331
-863169608 970450812 921824280
86572382 48169624...

result:

ok 300000 numbers

Test #12:

score: 0
Accepted
time: 226ms
memory: 72140kb

input:

199999 100000
x 37758 141919
v 148792593 369372129 595139892
x 59335 149367
v 452667329 904801829 628919068
v 160106559 532238331 179544300
v 850489754 705167899 265598880
x 120963 167491
x 92157 46815
v 444945978 987276260 843838004
x 189040 28027
v 889755401 760730228 3237333
x 168907 82672
v 2329...

output:

-101058855 -820807337 -344597551
48860209 -114729541 764698776
505088312 585962448 546090395
914246027 540944167 682989725
965835151 803706423 -695946246
-545247818 -283460866 961852197
882717809 425959754 886391042
-794577049 -543580851 -920138631
512196135 727218227 418204527
-723309552 270977361 ...

result:

ok 300000 numbers

Extra Test:

score: 0
Extra Test Passed