QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#556047#2458. Follow the Bouncing Ballucup-team1005WA 35ms4992kbC++207.2kb2024-09-10 14:32:322024-09-10 14:32:33

詳細信息

Test #1:

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

input:

20 30 5 3 10 -1 1
4 10 18 10 24 14 24 14 18 10
3 5 23 1 25 5 27 7
4 16 22 16 28 19 28 19 19 8

output:

0 2 3

result:

ok single line: '0 2 3'

Test #2:

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

input:

20 30 10 3 10.1 -1 1
4 10 18 10 24 14 24 14 18 10
3 5 23 1 25 5 27 7
4 16 22 16 28 19 28 19 19 8

output:

0 0 1

result:

ok single line: '0 0 1'

Test #3:

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

input:

40 100 90 4 10 0 1
3 5 10 5 20 35 20 100
3 5 40 35 40 35 30 100
3 5 50 5 60 35 60 100
3 5 80 35 80 35 70 100

output:

10 100 100 100

result:

ok single line: '10 100 100 100'

Test #4:

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

input:

40 100 90 4 10 0 1
3 5 10 5 20 35 20 18
3 5 40 35 40 35 30 100
3 5 50 5 60 35 60 100
3 5 80 35 80 35 70 100

output:

0 27 100 100

result:

ok single line: '0 27 100 100'

Test #5:

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

input:

40 100 90 4 10 0 1
3 5 10 5 20 35 20 18
3 5 40 35 40 35 30 21
3 5 50 5 60 35 60 100
3 5 80 35 80 35 70 100

output:

0 0 47 100

result:

ok single line: '0 0 47 100'

Test #6:

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

input:

40 100 90 4 10 0 1
3 5 10 5 20 35 20 18
3 5 40 35 40 35 30 21
3 5 50 5 60 35 60 15
3 5 80 35 80 35 70 100

output:

0 0 0 61

result:

ok single line: '0 0 0 61'

Test #7:

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

input:

12 102 4 2 4 3 4
4 1 1 1 101 4 101 4 1 101
4 7 1 7 101 11 101 11 1 101

output:

1 1

result:

ok single line: '1 1'

Test #8:

score: 0
Accepted
time: 8ms
memory: 4800kb

input:

20 36 500 11 10 5 3
3 1 2 1 5 6 2 100
3 1 9 1 15 6 12 100
3 1 21 1 27 6 24 100
3 1 31 1 34 6 34 100
4 10 1 1 6 10 11 19 6 100
4 10 13 1 18 10 23 19 18 100
4 10 25 1 30 10 35 19 30 100
3 14 2 19 5 19 2 100
3 14 12 19 15 19 9 100
3 14 24 19 27 19 21 100
3 14 34 19 34 19 31 100

output:

100 100 100 100 100 100 100 100 100 100 100

result:

ok single line: '100 100 100 100 100 100 100 100 100 100 100'

Test #9:

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

input:

20 1000 2 5 10 0 1
3 2 8 2 12 4 12 2
4 5 8 5 12 7 12 7 8 100
3 12 8 8 12 12 12 2
4 13 8 13 12 15 12 15 8 100
3 16 12 18 12 18 8 2

output:

1 0 0 1 2

result:

ok single line: '1 0 0 1 2'

Test #10:

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

input:

50 53 1 20 1 10 1
4 1 6 1 7 2 7 2 6 1
4 1 9 1 10 2 10 2 9 1
4 1 16 1 17 2 17 2 16 1
4 1 19 1 20 2 20 2 19 1
4 1 26 1 27 2 27 2 26 1
4 1 29 1 30 2 30 2 29 1
4 1 36 1 37 2 37 2 36 1
4 1 38 1 40 2 40 2 38 1
4 1 46 1 47 2 47 2 46 1
4 1 49 1 50 2 50 2 49 1
4 48 4 48 5 49 5 49 4 1
4 48 11 48 12 49 12 49 1...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

result:

ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'

Test #11:

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

input:

50 53 1 20 1 10 1
4 1 6 1 7 2 7 2 6 2
4 1 9 1 10 2 10 2 9 2
4 1 16 1 17 2 17 2 16 2
4 1 19 1 20 2 20 2 19 2
4 1 26 1 27 2 27 2 26 2
4 1 29 1 30 2 30 2 29 2
4 1 36 1 37 2 37 2 36 2
4 1 38 1 40 2 40 2 38 2
4 1 46 1 47 2 47 2 46 2
4 1 49 1 50 2 50 2 49 2
4 48 4 48 5 49 5 49 4 2
4 48 11 48 12 49 12 49 1...

output:

2 1 2 2 2 2 2 0 2 2 1 2 0 2 2 2 2 2 0 2

result:

ok single line: '2 1 2 2 2 2 2 0 2 2 1 2 0 2 2 2 2 2 0 2'

Test #12:

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

input:

1000 1000 1 6 500 5 6
4 593 872 603 790 457 829 558 897 462
3 777 432 741 448 808 568 307
6 728 820 753 871 817 863 827 805 811 785 778 775 151
5 525 455 635 402 619 309 506 291 499 442 157
3 974 885 889 927 982 933 171
10 842 145 882 182 925 182 933 179 969 118 962 88 929 59 900 54 874 60 859 70 321

output:

459 305 145 156 165 320

result:

ok single line: '459 305 145 156 165 320'

Test #13:

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

input:

1000 1000 100 6 500 5 6
4 593 872 603 790 457 829 558 897 462
3 777 432 741 448 808 568 307
6 728 820 753 871 817 863 827 805 811 785 778 775 151
5 525 455 635 402 619 309 506 291 499 442 157
3 974 885 889 927 982 933 171
10 842 145 882 182 925 182 933 179 969 118 962 88 929 59 900 54 874 60 859 70 ...

output:

462 307 51 157 0 151

result:

ok single line: '462 307 51 157 0 151'

Test #14:

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

input:

1000 1000 3 7 500 5 2
5 288 340 246 380 246 443 345 483 363 350 4
4 862 872 914 820 874 766 807 811 5
3 693 400 710 416 715 410 4
5 51 270 45 269 44 270 48 275 51 273 10
3 89 997 94 996 90 992 3
3 624 404 622 408 627 407 8
4 735 438 740 443 742 440 740 435 5

output:

0 0 1 7 0 7 3

result:

ok single line: '0 0 1 7 0 7 3'

Test #15:

score: 0
Accepted
time: 35ms
memory: 4836kb

input:

1000 1000 500 20 500 3 3
7 429 48 424 34 416 33 408 40 410 50 417 54 421 54 413
8 23 643 27 651 39 657 55 650 58 637 55 629 51 625 30 625 158
9 401 382 424 328 411 278 345 238 288 254 255 304 256 347 298 399 346 409 11
5 271 525 301 518 332 463 290 410 215 456 422
9 919 69 910 61 895 55 886 55 861 6...

output:

413 158 0 3 34 0 0 0 0 58 0 352 0 78 97 472 56 0 217 453

result:

ok single line: '413 158 0 3 34 0 0 0 0 58 0 352 0 78 97 472 56 0 217 453'

Test #16:

score: 0
Accepted
time: 21ms
memory: 4992kb

input:

1000 1000 500 20 500 -6 6
3 475 475 491 561 565 516 146
3 395 670 421 654 434 615 110
7 194 335 194 351 213 392 258 413 312 394 333 335 269 274 32
10 315 697 317 705 321 709 330 711 342 705 344 695 338 684 328 682 318 687 317 688 171
8 33 924 2 949 12 980 19 986 27 989 52 985 62 938 38 924 18
9 223 ...

output:

90 110 0 171 18 0 107 51 0 141 0 0 130 0 200 30 74 162 0 17

result:

ok single line: '90 110 0 171 18 0 107 51 0 141 0 0 130 0 200 30 74 162 0 17'

Test #17:

score: 0
Accepted
time: 7ms
memory: 4064kb

input:

1000 1000 200 20 500 -3 5
5 114 364 110 426 172 428 180 379 146 355 32
4 550 805 386 861 490 968 568 914 98
9 257 637 276 593 271 549 197 489 167 490 111 525 109 632 145 663 202 671 15
9 175 883 190 851 119 735 28 761 2 811 1 842 13 876 43 908 82 923 196
4 314 837 323 859 338 852 339 843 99
8 215 10...

output:

22 6 0 0 83 80 131 0 64 0 12 0 27 1 71 74 69 1 146 0

result:

ok single line: '22 6 0 0 83 80 131 0 64 0 12 0 27 1 71 74 69 1 146 0'

Test #18:

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

input:

1000 1000 50 18 500 -1 2
10 798 351 808 381 843 404 897 387 911 357 911 349 897 311 872 294 813 310 798 340 185
4 647 719 801 668 767 586 651 590 113
5 233 410 307 341 229 219 184 222 117 326 144
4 83 569 99 696 184 683 193 581 82
7 403 554 386 549 338 570 330 587 356 645 419 632 418 566 11
9 542 71...

output:

165 54 91 3 0 0 173 133 163 0 18 60 42 134 0 0 96 0

result:

ok single line: '165 54 91 3 0 0 173 133 163 0 18 60 42 134 0 0 96 0'

Test #19:

score: 0
Accepted
time: 8ms
memory: 3836kb

input:

1000 999 100 18 500 -1 2
10 798 351 808 381 843 404 897 387 911 357 911 349 897 311 872 294 813 310 798 340 185
4 647 719 801 668 767 586 651 590 113
5 233 410 307 341 229 219 184 222 117 326 144
4 83 569 99 696 184 683 193 581 82
7 403 554 386 549 338 570 330 587 356 645 419 632 418 566 11
9 542 71...

output:

150 51 120 0 0 0 172 101 159 0 0 52 42 112 0 0 104 0

result:

ok single line: '150 51 120 0 0 0 172 101 159 0 0 52 42 112 0 0 104 0'

Test #20:

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

input:

1000 1000 100 14 500 9 6
3 217 171 124 192 170 269 151
9 266 602 244 611 205 679 210 711 226 736 312 757 329 749 349 730 351 632 186
9 395 420 381 467 417 529 434 537 474 538 517 511 532 463 498 401 425 395 97
3 176 493 237 557 244 499 159
10 594 484 603 470 603 465 591 443 567 442 555 457 554 466 5...

output:

117 126 93 125 11 11 0 0 0 102 40 0 39 18

result:

ok single line: '117 126 93 125 11 11 0 0 0 102 40 0 39 18'

Test #21:

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

input:

20 1000 2 4 10 0 1
3 2 8 2 12 4 12 2
3 5 8 5 12 9 8 999
3 12 8 8 12 12 12 2
3 13 8 17 12 17 8 999

output:

1 0 0 1

result:

ok single line: '1 0 0 1'

Test #22:

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

input:

20 1000 2 4 10 0 1
3 2 8 2 12 4 12 2
3 5 8 5 12 9 8 1000
3 12 8 8 12 12 12 2
3 13 8 17 12 17 8 1000

output:

2 0 0 2

result:

ok single line: '2 0 0 2'

Test #23:

score: -100
Wrong Answer
time: 1ms
memory: 3972kb

input:

25 30 9 9 5 0 1
3 4 4 4 6 6 6 2
3 14 4 16 6 16 4 2
4 16 9 14 11 14 14 16 16 100
3 12 9 12 11 14 9 100
3 12 14 12 16 14 16 100
3 4 19 4 21 6 21 100
4 14 19 14 21 16 21 16 19 5
3 19 21 21 21 21 19 100
4 14 24 14 26 16 26 16 24 100

output:

26 6 6 : 6 2
35 26 6 : 7 0
35 34 6 : 6 1
36 35 6 : 6 2
44 35 6 : 0 2
0 0 96 98 98 78 0 98 99

result:

wrong answer 1st lines differ - expected: '0 0 96 98 98 89 0 95 99', found: '26 6 6 : 6 2'