QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#177695#3509. Ants and Sugarllzer#0 3ms4108kbC++143.2kb2023-09-13 10:43:132024-07-04 01:55:47

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 6
Accepted
time: 0ms
memory: 3624kb

input:

1 1
1 1 43789532

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3888kb

input:

2059 1
2 91 205759686
2 2689 599484232
1 2180 81617884
2 1782 293164452
2 1295 83799395
1 824 576761628
2 2942 522567248
2 2573 662719421
2 2570 691955288
1 2656 419809596
1 2225 256640321
1 2171 737201459
1 586 819276893
1 2368 699662246
1 738 914000324
2 2758 745510056
1 2108 122277545
1 1409 9821...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
226516121
226516121
226516121
226516121
226516121
226516121
226516121
226516121
226516121
226516121
226516121
462049638
462049638
462049638
462049638
46...

result:

ok 2059 lines

Test #3:

score: 0
Accepted
time: 2ms
memory: 3896kb

input:

1758 2
1 2092 248913382
2 2654 701196
1 2990 982022122
2 510 401446121
2 2351 364451968
2 132 636059905
2 2145 233300265
2 1082 534103086
2 1466 280509217
1 2707 124197364
1 710 232253210
1 771 618059609
1 1425 377266504
1 333 14126191
2 1944 896240101
1 1502 674724902
1 1894 914388905
2 2363 774264...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
176904489
539325511
539325511
539325511
...

result:

ok 1758 lines

Test #4:

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

input:

984 3
1 1399 406262632
1 1985 535266088
2 476 266864375
2 2841 598420054
2 1682 114642248
2 700 885032569
2 2239 491954286
1 266 846764969
2 4 837307674
1 1996 530814970
1 1945 254983914
1 2302 317101168
2 2719 772505666
1 99 559039435
1 436 842250428
2 1256 20031539
2 2524 359104577
1 2136 58108025...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
335840277
335840277
335840277
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077906
753077...

result:

ok 984 lines

Test #5:

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

input:

917 4
2 2748 561618522
2 1041 483486161
1 841 892594053
1 1791 182371399
1 421 482635117
2 2461 450139653
1 290 422206592
1 63 789769980
1 1119 45491948
1 2253 48677131
1 1837 950285483
2 2912 5152074
1 1557 940521627
1 1780 692650375
1 2362 791388364
1 1390 605536925
1 770 340725728
2 898 366520453...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
223147979
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
829672949
8296...

result:

ok 917 lines

Test #6:

score: 0
Accepted
time: 3ms
memory: 4108kb

input:

3000 8226
1 655234836 447203167
1 676131591 318717104
1 39528133 135735907
1 747053401 554438380
2 579142385 8322871
2 398556222 597774764
2 368141755 167666251
1 679306486 272797443
2 74282374 733627337
1 343686605 546376510
2 796317057 539476479
1 851213889 43222517
2 335933260 499220617
2 5811150...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 3000 lines

Test #7:

score: 0
Accepted
time: 3ms
memory: 4056kb

input:

3000 232644
1 353788028 154653655
1 152718576 99582396
2 961816955 540741206
2 736205972 600821879
1 944509306 75660225
1 984951348 766581018
2 448384573 690224753
2 744751771 258041312
2 896474673 932991578
2 588077523 910625595
2 750622779 934792919
1 691711396 919263549
1 887566702 191594154
2 53...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
185355971
185355971
185355971
185355971
185355971
474564663
474564663
474564663
474564663
474564663
474564663
474564663
474564663
474564663
474564663
474564663
474564663
4745...

result:

ok 3000 lines

Test #8:

score: 0
Accepted
time: 3ms
memory: 4044kb

input:

3000 910269
2 61918611 557580046
2 340429038 468685433
1 737072263 580368496
1 986382374 637949426
1 273460934 425888682
2 569386970 350363900
2 816491480 321041286
1 101755138 565034472
2 583342200 135109554
1 844808232 704834718
2 881482750 745135108
1 236140252 388559993
1 51526950 835654221
1 62...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
526012834
526012834
526012834
526012834
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074618207
1074...

result:

ok 3000 lines

Test #9:

score: 0
Accepted
time: 3ms
memory: 4040kb

input:

3000 887914
1 246069140 98423237
2 399692553 517204814
1 144302079 198558372
1 147329059 678450782
2 213026902 421601551
1 248275861 668778782
2 964152863 251568389
2 52364344 150148680
2 474380015 708184316
2 436556049 131118413
2 180938984 804761100
1 699664828 71937943
1 578663714 219998413
2 172...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
251568389
25156838...

result:

ok 3000 lines

Test #10:

score: -6
Wrong Answer
time: 3ms
memory: 4064kb

input:

3000 179369
2 323675251 338155051
2 590703742 708400792
2 250457325 315578864
2 870408567 167963484
2 585877163 355612581
2 585961031 748252128
2 108322930 57210655
2 281422481 748534329
2 323880368 409750994
2 151746571 61739536
2 60888025 55177518
2 349396477 937330666
2 323785984 238064167
2 8101...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 2999th lines differ - expected: '0', found: '410057'

Subtask #2:

score: 0
Wrong Answer

Test #22:

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

input:

1 1
2 0 424230929

output:

424230929

result:

wrong answer 1st lines differ - expected: '0', found: '424230929'

Subtask #3:

score: 0
Runtime Error

Test #35:

score: 0
Runtime Error

input:

401626 1
1 457671 568783758
1 417077 607440922
1 139391 32824188
1 14373 220864694
1 118370 531535298
1 266098 186053453
1 127727 666497333
1 338836 353757976
1 481683 518470240
1 480524 68393518
1 232781 901754468
1 8039 85894025
1 439988 468564731
1 27639 140803132
1 241258 222831725
1 477544 9656...

output:


result:


Subtask #4:

score: 0
Skipped

Dependency #1:

0%