QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#296196#7840. Assessment Disruptionucup-team2880#AC ✓1ms3680kbC++20644b2024-01-02 13:54:022024-01-02 13:54:02

详细

Test #1:

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

input:

3 2500

output:

2499 1
2498 2
2500 3

result:

ok correct

Test #2:

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

input:

2 8124

output:

8123 1
8124 2

result:

ok correct

Test #3:

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

input:

3 3563

output:

3562 1
3561 2
3563 3

result:

ok correct

Test #4:

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

input:

4 6374

output:

6373 1
6372 2
6371 3
6374 4

result:

ok correct

Test #5:

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

input:

5 10000

output:

9999 1
9998 2
9997 3
10000 4
10000 5

result:

ok correct

Test #6:

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

input:

6 1444

output:

1443 1
1442 2
1441 3
1440 4
1444 5
1444 6

result:

ok correct

Test #7:

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

input:

7 342

output:

341 1
340 2
339 3
338 4
342 5
342 6
342 7

result:

ok correct

Test #8:

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

input:

8 0

output:

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

result:

ok correct

Test #9:

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

input:

9 124

output:

123 1
122 2
121 3
120 4
119 5
118 6
124 7
124 8
124 9

result:

ok correct

Test #10:

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

input:

10 11

output:

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

result:

ok correct

Test #11:

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

input:

11 8

output:

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

result:

ok correct

Test #12:

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

input:

12 10000

output:

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

result:

ok correct

Test #13:

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

input:

13 9999

output:

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

result:

ok correct

Test #14:

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

input:

14 2345

output:

2344 1
2343 2
2342 3
2341 4
2340 5
2339 6
2338 7
2337 8
2336 9
2345 10
2345 11
2345 12
2345 13
2345 14

result:

ok correct

Test #15:

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

input:

15 754

output:

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

result:

ok correct

Test #16:

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

input:

16 8723

output:

8722 1
8721 2
8720 3
8719 4
8718 5
8717 6
8716 7
8715 8
8714 9
8713 10
8723 11
8723 12
8723 13
8723 14
8723 15
8723 16

result:

ok correct

Test #17:

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

input:

17 9001

output:

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

result:

ok correct

Test #18:

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

input:

18 1245

output:

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

result:

ok correct

Test #19:

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

input:

19 4324

output:

4323 1
4322 2
4321 3
4320 4
4319 5
4318 6
4317 7
4316 8
4315 9
4314 10
4313 11
4312 12
4324 13
4324 14
4324 15
4324 16
4324 17
4324 18
4324 19

result:

ok correct

Test #20:

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

input:

20 3463

output:

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

result:

ok correct

Test #21:

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

input:

21 2342

output:

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

result:

ok correct

Test #22:

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

input:

22 10000

output:

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

result:

ok correct

Test #23:

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

input:

23 3424

output:

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

result:

ok correct

Test #24:

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

input:

24 1

output:

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

result:

ok correct

Test #25:

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

input:

25 0

output:

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

result:

ok correct

Test #26:

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

input:

99 0

output:

1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
21 21
22 22
23 23
24 24
25 25
26 26
27 27
28 28
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 39
40 40
41 41
42 42
43 43
44 44
45 45
46 46
47 47
48 48
49 49
50 50
51 51
52 52
53 53
...

result:

ok correct

Test #27:

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

input:

99 1

output:

0 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52
54 53...

result:

ok correct

Test #28:

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

input:

99 6346

output:

6345 1
6344 2
6343 3
6342 4
6341 5
6340 6
6339 7
6338 8
6337 9
6336 10
6335 11
6334 12
6333 13
6332 14
6331 15
6330 16
6329 17
6328 18
6327 19
6326 20
6325 21
6324 22
6323 23
6322 24
6321 25
6320 26
6319 27
6318 28
6317 29
6316 30
6315 31
6314 32
6313 33
6312 34
6311 35
6310 36
6309 37
6308 38
6307 ...

result:

ok correct

Test #29:

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

input:

99 9999

output:

9998 1
9997 2
9996 3
9995 4
9994 5
9993 6
9992 7
9991 8
9990 9
9989 10
9988 11
9987 12
9986 13
9985 14
9984 15
9983 16
9982 17
9981 18
9980 19
9979 20
9978 21
9977 22
9976 23
9975 24
9974 25
9973 26
9972 27
9971 28
9970 29
9969 30
9968 31
9967 32
9966 33
9965 34
9964 35
9963 36
9962 37
9961 38
9960 ...

result:

ok correct

Test #30:

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

input:

99 10000

output:

9999 1
9998 2
9997 3
9996 4
9995 5
9994 6
9993 7
9992 8
9991 9
9990 10
9989 11
9988 12
9987 13
9986 14
9985 15
9984 16
9983 17
9982 18
9981 19
9980 20
9979 21
9978 22
9977 23
9976 24
9975 25
9974 26
9973 27
9972 28
9971 29
9970 30
9969 31
9968 32
9967 33
9966 34
9965 35
9964 36
9963 37
9962 38
9961 ...

result:

ok correct

Test #31:

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

input:

100 0

output:

1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
21 21
22 22
23 23
24 24
25 25
26 26
27 27
28 28
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 39
40 40
41 41
42 42
43 43
44 44
45 45
46 46
47 47
48 48
49 49
50 50
51 51
52 52
53 53
...

result:

ok correct

Test #32:

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

input:

100 1

output:

0 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52
54 53...

result:

ok correct

Test #33:

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

input:

100 1244

output:

1243 1
1242 2
1241 3
1240 4
1239 5
1238 6
1237 7
1236 8
1235 9
1234 10
1233 11
1232 12
1231 13
1230 14
1229 15
1228 16
1227 17
1226 18
1225 19
1224 20
1223 21
1222 22
1221 23
1220 24
1219 25
1218 26
1217 27
1216 28
1215 29
1214 30
1213 31
1212 32
1211 33
1210 34
1209 35
1208 36
1207 37
1206 38
1205 ...

result:

ok correct

Test #34:

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

input:

100 9999

output:

9998 1
9997 2
9996 3
9995 4
9994 5
9993 6
9992 7
9991 8
9990 9
9989 10
9988 11
9987 12
9986 13
9985 14
9984 15
9983 16
9982 17
9981 18
9980 19
9979 20
9978 21
9977 22
9976 23
9975 24
9974 25
9973 26
9972 27
9971 28
9970 29
9969 30
9968 31
9967 32
9966 33
9965 34
9964 35
9963 36
9962 37
9961 38
9960 ...

result:

ok correct

Test #35:

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

input:

100 10000

output:

9999 1
9998 2
9997 3
9996 4
9995 5
9994 6
9993 7
9992 8
9991 9
9990 10
9989 11
9988 12
9987 13
9986 14
9985 15
9984 16
9983 17
9982 18
9981 19
9980 20
9979 21
9978 22
9977 23
9976 24
9975 25
9974 26
9973 27
9972 28
9971 29
9970 30
9969 31
9968 32
9967 33
9966 34
9965 35
9964 36
9963 37
9962 38
9961 ...

result:

ok correct

Test #36:

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

input:

999 0

output:

1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
21 21
22 22
23 23
24 24
25 25
26 26
27 27
28 28
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 39
40 40
41 41
42 42
43 43
44 44
45 45
46 46
47 47
48 48
49 49
50 50
51 51
52 52
53 53
...

result:

ok correct

Test #37:

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

input:

999 1

output:

0 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52
54 53...

result:

ok correct

Test #38:

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

input:

999 4234

output:

4233 1
4232 2
4231 3
4230 4
4229 5
4228 6
4227 7
4226 8
4225 9
4224 10
4223 11
4222 12
4221 13
4220 14
4219 15
4218 16
4217 17
4216 18
4215 19
4214 20
4213 21
4212 22
4211 23
4210 24
4209 25
4208 26
4207 27
4206 28
4205 29
4204 30
4203 31
4202 32
4201 33
4200 34
4199 35
4198 36
4197 37
4196 38
4195 ...

result:

ok correct

Test #39:

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

input:

999 9999

output:

9998 1
9997 2
9996 3
9995 4
9994 5
9993 6
9992 7
9991 8
9990 9
9989 10
9988 11
9987 12
9986 13
9985 14
9984 15
9983 16
9982 17
9981 18
9980 19
9979 20
9978 21
9977 22
9976 23
9975 24
9974 25
9973 26
9972 27
9971 28
9970 29
9969 30
9968 31
9967 32
9966 33
9965 34
9964 35
9963 36
9962 37
9961 38
9960 ...

result:

ok correct

Test #40:

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

input:

999 10000

output:

9999 1
9998 2
9997 3
9996 4
9995 5
9994 6
9993 7
9992 8
9991 9
9990 10
9989 11
9988 12
9987 13
9986 14
9985 15
9984 16
9983 17
9982 18
9981 19
9980 20
9979 21
9978 22
9977 23
9976 24
9975 25
9974 26
9973 27
9972 28
9971 29
9970 30
9969 31
9968 32
9967 33
9966 34
9965 35
9964 36
9963 37
9962 38
9961 ...

result:

ok correct

Test #41:

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

input:

1000 0

output:

1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
21 21
22 22
23 23
24 24
25 25
26 26
27 27
28 28
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 39
40 40
41 41
42 42
43 43
44 44
45 45
46 46
47 47
48 48
49 49
50 50
51 51
52 52
53 53
...

result:

ok correct

Test #42:

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

input:

1000 1

output:

0 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52
54 53...

result:

ok correct

Test #43:

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

input:

1000 1321

output:

1320 1
1319 2
1318 3
1317 4
1316 5
1315 6
1314 7
1313 8
1312 9
1311 10
1310 11
1309 12
1308 13
1307 14
1306 15
1305 16
1304 17
1303 18
1302 19
1301 20
1300 21
1299 22
1298 23
1297 24
1296 25
1295 26
1294 27
1293 28
1292 29
1291 30
1290 31
1289 32
1288 33
1287 34
1286 35
1285 36
1284 37
1283 38
1282 ...

result:

ok correct

Test #44:

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

input:

1000 9999

output:

9998 1
9997 2
9996 3
9995 4
9994 5
9993 6
9992 7
9991 8
9990 9
9989 10
9988 11
9987 12
9986 13
9985 14
9984 15
9983 16
9982 17
9981 18
9980 19
9979 20
9978 21
9977 22
9976 23
9975 24
9974 25
9973 26
9972 27
9971 28
9970 29
9969 30
9968 31
9967 32
9966 33
9965 34
9964 35
9963 36
9962 37
9961 38
9960 ...

result:

ok correct

Test #45:

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

input:

1000 10000

output:

9999 1
9998 2
9997 3
9996 4
9995 5
9994 6
9993 7
9992 8
9991 9
9990 10
9989 11
9988 12
9987 13
9986 14
9985 15
9984 16
9983 17
9982 18
9981 19
9980 20
9979 21
9978 22
9977 23
9976 24
9975 25
9974 26
9973 27
9972 28
9971 29
9970 30
9969 31
9968 32
9967 33
9966 34
9965 35
9964 36
9963 37
9962 38
9961 ...

result:

ok correct