QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#511149#7840. Assessment Disruption1982505684AC ✓0ms3948kbC++14404b2024-08-09 16:53:482024-08-09 16:53:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2500

output:

2498 1
2497 2
2499 3

result:

ok correct

Test #2:

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

input:

2 8124

output:

8122 1
8123 2

result:

ok correct

Test #3:

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

input:

3 3563

output:

3561 1
3560 2
3562 3

result:

ok correct

Test #4:

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

input:

4 6374

output:

6371 1
6370 2
6372 3
6373 4

result:

ok correct

Test #5:

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

input:

5 10000

output:

9997 1
9996 2
9995 3
9998 4
9999 5

result:

ok correct

Test #6:

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

input:

6 1444

output:

1440 1
1439 2
1438 3
1441 4
1442 5
1443 6

result:

ok correct

Test #7:

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

input:

7 342

output:

338 1
337 2
336 3
335 4
339 5
340 6
341 7

result:

ok correct

Test #8:

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

input:

8 0

output:

5 1
6 2
7 3
8 4
4 5
3 6
2 7
1 8

result:

ok correct

Test #9:

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

input:

9 124

output:

119 1
118 2
117 3
116 4
115 5
120 6
121 7
122 8
123 9

result:

ok correct

Test #10:

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

input:

10 11

output:

5 1
4 2
3 3
2 4
1 5
6 6
7 7
8 8
9 9
10 10

result:

ok correct

Test #11:

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

input:

11 8

output:

2 1
1 2
0 3
17 4
18 5
19 6
3 7
4 8
5 9
6 10
7 11

result:

ok correct

Test #12:

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

input:

12 10000

output:

9993 1
9992 2
9991 3
9990 4
9989 5
9988 6
9994 7
9995 8
9996 9
9997 10
9998 11
9999 12

result:

ok correct

Test #13:

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

input:

13 9999

output:

9992 1
9991 2
9990 3
9989 4
9988 5
9987 6
9986 7
9993 8
9994 9
9995 10
9996 11
9997 12
9998 13

result:

ok correct

Test #14:

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

input:

14 2345

output:

2337 1
2336 2
2335 3
2334 4
2333 5
2332 6
2331 7
2338 8
2339 9
2340 10
2341 11
2342 12
2343 13
2344 14

result:

ok correct

Test #15:

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

input:

15 754

output:

746 1
745 2
744 3
743 4
742 5
741 6
740 7
739 8
747 9
748 10
749 11
750 12
751 13
752 14
753 15

result:

ok correct

Test #16:

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

input:

16 8723

output:

8714 1
8713 2
8712 3
8711 4
8710 5
8709 6
8708 7
8707 8
8715 9
8716 10
8717 11
8718 12
8719 13
8720 14
8721 15
8722 16

result:

ok correct

Test #17:

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

input:

17 9001

output:

8992 1
8991 2
8990 3
8989 4
8988 5
8987 6
8986 7
8985 8
8984 9
8993 10
8994 11
8995 12
8996 13
8997 14
8998 15
8999 16
9000 17

result:

ok correct

Test #18:

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

input:

18 1245

output:

1235 1
1234 2
1233 3
1232 4
1231 5
1230 6
1229 7
1228 8
1227 9
1236 10
1237 11
1238 12
1239 13
1240 14
1241 15
1242 16
1243 17
1244 18

result:

ok correct

Test #19:

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

input:

19 4324

output:

4314 1
4313 2
4312 3
4311 4
4310 5
4309 6
4308 7
4307 8
4306 9
4305 10
4315 11
4316 12
4317 13
4318 14
4319 15
4320 16
4321 17
4322 18
4323 19

result:

ok correct

Test #20:

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

input:

20 3463

output:

3452 1
3451 2
3450 3
3449 4
3448 5
3447 6
3446 7
3445 8
3444 9
3443 10
3453 11
3454 12
3455 13
3456 14
3457 15
3458 16
3459 17
3460 18
3461 19
3462 20

result:

ok correct

Test #21:

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

input:

21 2342

output:

2331 1
2330 2
2329 3
2328 4
2327 5
2326 6
2325 7
2324 8
2323 9
2322 10
2321 11
2332 12
2333 13
2334 14
2335 15
2336 16
2337 17
2338 18
2339 19
2340 20
2341 21

result:

ok correct

Test #22:

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

input:

22 10000

output:

9988 1
9987 2
9986 3
9985 4
9984 5
9983 6
9982 7
9981 8
9980 9
9979 10
9978 11
9989 12
9990 13
9991 14
9992 15
9993 16
9994 17
9995 18
9996 19
9997 20
9998 21
9999 22

result:

ok correct

Test #23:

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

input:

23 3424

output:

3412 1
3411 2
3410 3
3409 4
3408 5
3407 6
3406 7
3405 8
3404 9
3403 10
3402 11
3401 12
3413 13
3414 14
3415 15
3416 16
3417 17
3418 18
3419 19
3420 20
3421 21
3422 22
3423 23

result:

ok correct

Test #24:

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

input:

24 1

output:

14 1
15 2
16 3
17 4
18 5
19 6
20 7
21 8
22 9
23 10
24 11
25 12
13 13
12 14
11 15
10 16
9 17
8 18
7 19
6 20
5 21
4 22
3 23
0 24

result:

ok correct

Test #25:

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

input:

25 0

output:

13 1
14 2
15 3
16 4
17 5
18 6
19 7
20 8
21 9
22 10
23 11
24 12
25 13
12 14
11 15
10 16
9 17
8 18
7 19
6 20
5 21
4 22
3 23
2 24
1 25

result:

ok correct

Test #26:

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

input:

99 0

output:

50 1
51 2
52 3
53 4
54 5
55 6
56 7
57 8
58 9
59 10
60 11
61 12
62 13
63 14
64 15
65 16
66 17
67 18
68 19
69 20
70 21
71 22
72 23
73 24
74 25
75 26
76 27
77 28
78 29
79 30
80 31
81 32
82 33
83 34
84 35
85 36
86 37
87 38
88 39
89 40
90 41
91 42
92 43
93 44
94 45
95 46
96 47
97 48
98 49
99 50
49 51
48 ...

result:

ok correct

Test #27:

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

input:

99 1

output:

51 1
52 2
53 3
54 4
55 5
56 6
57 7
58 8
59 9
60 10
61 11
62 12
63 13
64 14
65 15
66 16
67 17
68 18
69 19
70 20
71 21
72 22
73 23
74 24
75 25
76 26
77 27
78 28
79 29
80 30
81 31
82 32
83 33
84 34
85 35
86 36
87 37
88 38
89 39
90 40
91 41
92 42
93 43
94 44
95 45
96 46
97 47
98 48
99 49
100 50
50 51
49...

result:

ok correct

Test #28:

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

input:

99 6346

output:

6296 1
6295 2
6294 3
6293 4
6292 5
6291 6
6290 7
6289 8
6288 9
6287 10
6286 11
6285 12
6284 13
6283 14
6282 15
6281 16
6280 17
6279 18
6278 19
6277 20
6276 21
6275 22
6274 23
6273 24
6272 25
6271 26
6270 27
6269 28
6268 29
6267 30
6266 31
6265 32
6264 33
6263 34
6262 35
6261 36
6260 37
6259 38
6258 ...

result:

ok correct

Test #29:

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

input:

99 9999

output:

9949 1
9948 2
9947 3
9946 4
9945 5
9944 6
9943 7
9942 8
9941 9
9940 10
9939 11
9938 12
9937 13
9936 14
9935 15
9934 16
9933 17
9932 18
9931 19
9930 20
9929 21
9928 22
9927 23
9926 24
9925 25
9924 26
9923 27
9922 28
9921 29
9920 30
9919 31
9918 32
9917 33
9916 34
9915 35
9914 36
9913 37
9912 38
9911 ...

result:

ok correct

Test #30:

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

input:

99 10000

output:

9950 1
9949 2
9948 3
9947 4
9946 5
9945 6
9944 7
9943 8
9942 9
9941 10
9940 11
9939 12
9938 13
9937 14
9936 15
9935 16
9934 17
9933 18
9932 19
9931 20
9930 21
9929 22
9928 23
9927 24
9926 25
9925 26
9924 27
9923 28
9922 29
9921 30
9920 31
9919 32
9918 33
9917 34
9916 35
9915 36
9914 37
9913 38
9912 ...

result:

ok correct

Test #31:

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

input:

100 0

output:

51 1
52 2
53 3
54 4
55 5
56 6
57 7
58 8
59 9
60 10
61 11
62 12
63 13
64 14
65 15
66 16
67 17
68 18
69 19
70 20
71 21
72 22
73 23
74 24
75 25
76 26
77 27
78 28
79 29
80 30
81 31
82 32
83 33
84 34
85 35
86 36
87 37
88 38
89 39
90 40
91 41
92 42
93 43
94 44
95 45
96 46
97 47
98 48
99 49
100 50
50 51
49...

result:

ok correct

Test #32:

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

input:

100 1

output:

52 1
53 2
54 3
55 4
56 5
57 6
58 7
59 8
60 9
61 10
62 11
63 12
64 13
65 14
66 15
67 16
68 17
69 18
70 19
71 20
72 21
73 22
74 23
75 24
76 25
77 26
78 27
79 28
80 29
81 30
82 31
83 32
84 33
85 34
86 35
87 36
88 37
89 38
90 39
91 40
92 41
93 42
94 43
95 44
96 45
97 46
98 47
99 48
100 49
101 50
51 51
5...

result:

ok correct

Test #33:

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

input:

100 1244

output:

1193 1
1192 2
1191 3
1190 4
1189 5
1188 6
1187 7
1186 8
1185 9
1184 10
1183 11
1182 12
1181 13
1180 14
1179 15
1178 16
1177 17
1176 18
1175 19
1174 20
1173 21
1172 22
1171 23
1170 24
1169 25
1168 26
1167 27
1166 28
1165 29
1164 30
1163 31
1162 32
1161 33
1160 34
1159 35
1158 36
1157 37
1156 38
1155 ...

result:

ok correct

Test #34:

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

input:

100 9999

output:

9948 1
9947 2
9946 3
9945 4
9944 5
9943 6
9942 7
9941 8
9940 9
9939 10
9938 11
9937 12
9936 13
9935 14
9934 15
9933 16
9932 17
9931 18
9930 19
9929 20
9928 21
9927 22
9926 23
9925 24
9924 25
9923 26
9922 27
9921 28
9920 29
9919 30
9918 31
9917 32
9916 33
9915 34
9914 35
9913 36
9912 37
9911 38
9910 ...

result:

ok correct

Test #35:

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

input:

100 10000

output:

9949 1
9948 2
9947 3
9946 4
9945 5
9944 6
9943 7
9942 8
9941 9
9940 10
9939 11
9938 12
9937 13
9936 14
9935 15
9934 16
9933 17
9932 18
9931 19
9930 20
9929 21
9928 22
9927 23
9926 24
9925 25
9924 26
9923 27
9922 28
9921 29
9920 30
9919 31
9918 32
9917 33
9916 34
9915 35
9914 36
9913 37
9912 38
9911 ...

result:

ok correct

Test #36:

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

input:

999 0

output:

500 1
501 2
502 3
503 4
504 5
505 6
506 7
507 8
508 9
509 10
510 11
511 12
512 13
513 14
514 15
515 16
516 17
517 18
518 19
519 20
520 21
521 22
522 23
523 24
524 25
525 26
526 27
527 28
528 29
529 30
530 31
531 32
532 33
533 34
534 35
535 36
536 37
537 38
538 39
539 40
540 41
541 42
542 43
543 44
5...

result:

ok correct

Test #37:

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

input:

999 1

output:

501 1
502 2
503 3
504 4
505 5
506 6
507 7
508 8
509 9
510 10
511 11
512 12
513 13
514 14
515 15
516 16
517 17
518 18
519 19
520 20
521 21
522 22
523 23
524 24
525 25
526 26
527 27
528 28
529 29
530 30
531 31
532 32
533 33
534 34
535 35
536 36
537 37
538 38
539 39
540 40
541 41
542 42
543 43
544 44
5...

result:

ok correct

Test #38:

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

input:

999 4234

output:

3734 1
3733 2
3732 3
3731 4
3730 5
3729 6
3728 7
3727 8
3726 9
3725 10
3724 11
3723 12
3722 13
3721 14
3720 15
3719 16
3718 17
3717 18
3716 19
3715 20
3714 21
3713 22
3712 23
3711 24
3710 25
3709 26
3708 27
3707 28
3706 29
3705 30
3704 31
3703 32
3702 33
3701 34
3700 35
3699 36
3698 37
3697 38
3696 ...

result:

ok correct

Test #39:

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

input:

999 9999

output:

9499 1
9498 2
9497 3
9496 4
9495 5
9494 6
9493 7
9492 8
9491 9
9490 10
9489 11
9488 12
9487 13
9486 14
9485 15
9484 16
9483 17
9482 18
9481 19
9480 20
9479 21
9478 22
9477 23
9476 24
9475 25
9474 26
9473 27
9472 28
9471 29
9470 30
9469 31
9468 32
9467 33
9466 34
9465 35
9464 36
9463 37
9462 38
9461 ...

result:

ok correct

Test #40:

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

input:

999 10000

output:

9500 1
9499 2
9498 3
9497 4
9496 5
9495 6
9494 7
9493 8
9492 9
9491 10
9490 11
9489 12
9488 13
9487 14
9486 15
9485 16
9484 17
9483 18
9482 19
9481 20
9480 21
9479 22
9478 23
9477 24
9476 25
9475 26
9474 27
9473 28
9472 29
9471 30
9470 31
9469 32
9468 33
9467 34
9466 35
9465 36
9464 37
9463 38
9462 ...

result:

ok correct

Test #41:

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

input:

1000 0

output:

501 1
502 2
503 3
504 4
505 5
506 6
507 7
508 8
509 9
510 10
511 11
512 12
513 13
514 14
515 15
516 16
517 17
518 18
519 19
520 20
521 21
522 22
523 23
524 24
525 25
526 26
527 27
528 28
529 29
530 30
531 31
532 32
533 33
534 34
535 35
536 36
537 37
538 38
539 39
540 40
541 41
542 42
543 43
544 44
5...

result:

ok correct

Test #42:

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

input:

1000 1

output:

502 1
503 2
504 3
505 4
506 5
507 6
508 7
509 8
510 9
511 10
512 11
513 12
514 13
515 14
516 15
517 16
518 17
519 18
520 19
521 20
522 21
523 22
524 23
525 24
526 25
527 26
528 27
529 28
530 29
531 30
532 31
533 32
534 33
535 34
536 35
537 36
538 37
539 38
540 39
541 40
542 41
543 42
544 43
545 44
5...

result:

ok correct

Test #43:

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

input:

1000 1321

output:

820 1
819 2
818 3
817 4
816 5
815 6
814 7
813 8
812 9
811 10
810 11
809 12
808 13
807 14
806 15
805 16
804 17
803 18
802 19
801 20
800 21
799 22
798 23
797 24
796 25
795 26
794 27
793 28
792 29
791 30
790 31
789 32
788 33
787 34
786 35
785 36
784 37
783 38
782 39
781 40
780 41
779 42
778 43
777 44
7...

result:

ok correct

Test #44:

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

input:

1000 9999

output:

9498 1
9497 2
9496 3
9495 4
9494 5
9493 6
9492 7
9491 8
9490 9
9489 10
9488 11
9487 12
9486 13
9485 14
9484 15
9483 16
9482 17
9481 18
9480 19
9479 20
9478 21
9477 22
9476 23
9475 24
9474 25
9473 26
9472 27
9471 28
9470 29
9469 30
9468 31
9467 32
9466 33
9465 34
9464 35
9463 36
9462 37
9461 38
9460 ...

result:

ok correct

Test #45:

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

input:

1000 10000

output:

9499 1
9498 2
9497 3
9496 4
9495 5
9494 6
9493 7
9492 8
9491 9
9490 10
9489 11
9488 12
9487 13
9486 14
9485 15
9484 16
9483 17
9482 18
9481 19
9480 20
9479 21
9478 22
9477 23
9476 24
9475 25
9474 26
9473 27
9472 28
9471 29
9470 30
9469 31
9468 32
9467 33
9466 34
9465 35
9464 36
9463 37
9462 38
9461 ...

result:

ok correct