QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#259495#3269. 末日魔法少女计划flower22 387ms19936kbC++203.3kb2023-11-20 23:34:052023-11-20 23:34:05

詳細信息

Subtask #1:

score: 22
Accepted

Test #1:

score: 22
Accepted
time: 368ms
memory: 19736kb

input:

2000 2

output:

15974
0 3
0 7
0 15
0 31
0 62
0 125
0 250
0 500
0 1000
1 3
1 7
1 15
1 31
1 62
1 125
1 250
1 500
1 1000
2 7
2 15
2 31
2 62
2 125
2 250
2 500
2 1000
3 5
3 6
3 7
3 15
3 31
3 62
3 125
3 250
3 500
3 1000
4 7
4 15
4 31
4 62
4 125
4 250
4 500
4 1000
5 7
5 15
5 31
5 62
5 125
5 250
5 500
5 1000
6 15
6 31
6 62...

result:

ok 

Test #2:

score: 22
Accepted
time: 373ms
memory: 19820kb

input:

1999 2

output:

15965
0 3
0 7
0 15
0 31
0 62
0 125
0 250
0 500
0 1000
1 3
1 7
1 15
1 31
1 62
1 125
1 250
1 500
1 1000
2 7
2 15
2 31
2 62
2 125
2 250
2 500
2 1000
3 5
3 6
3 7
3 15
3 31
3 62
3 125
3 250
3 500
3 1000
4 7
4 15
4 31
4 62
4 125
4 250
4 500
4 1000
5 7
5 15
5 31
5 62
5 125
5 250
5 500
5 1000
6 15
6 31
6 62...

result:

ok 

Test #3:

score: 22
Accepted
time: 374ms
memory: 19404kb

input:

1992 2

output:

15902
0 3
0 7
0 15
0 31
0 62
0 124
0 249
0 498
0 996
1 3
1 7
1 15
1 31
1 62
1 124
1 249
1 498
1 996
2 7
2 15
2 31
2 62
2 124
2 249
2 498
2 996
3 5
3 6
3 7
3 15
3 31
3 62
3 124
3 249
3 498
3 996
4 7
4 15
4 31
4 62
4 124
4 249
4 498
4 996
5 7
5 15
5 31
5 62
5 124
5 249
5 498
5 996
6 15
6 31
6 62
6 124...

result:

ok 

Test #4:

score: 22
Accepted
time: 370ms
memory: 19936kb

input:

1973 2

output:

15731
0 3
0 7
0 15
0 30
0 61
0 123
0 246
0 493
0 987
1 3
1 7
1 15
1 30
1 61
1 123
1 246
1 493
1 987
2 7
2 15
2 30
2 61
2 123
2 246
2 493
2 987
3 5
3 6
3 7
3 15
3 30
3 61
3 123
3 246
3 493
3 987
4 7
4 15
4 30
4 61
4 123
4 246
4 493
4 987
5 7
5 15
5 30
5 61
5 123
5 246
5 493
5 987
6 15
6 30
6 61
6 123...

result:

ok 

Test #5:

score: 22
Accepted
time: 369ms
memory: 19848kb

input:

1936 2

output:

15398
0 3
0 7
0 15
0 30
0 60
0 121
0 242
0 484
0 968
1 3
1 7
1 15
1 30
1 60
1 121
1 242
1 484
1 968
2 7
2 15
2 30
2 60
2 121
2 242
2 484
2 968
3 5
3 6
3 7
3 15
3 30
3 60
3 121
3 242
3 484
3 968
4 7
4 15
4 30
4 60
4 121
4 242
4 484
4 968
5 7
5 15
5 30
5 60
5 121
5 242
5 484
5 968
6 15
6 30
6 60
6 121...

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #6:

score: 0
Wrong Answer
time: 368ms
memory: 19088kb

input:

1936 3

output:

5311
3 5
3 7
5 7
12 14
12 15
12 16
12 17
12 22
12 27
12 32
13 17
14 17
15 17
17 19
17 20
17 21
17 22
17 27
17 32
18 22
19 22
20 22
22 24
22 25
22 26
22 27
22 32
23 27
24 27
25 27
27 29
27 30
27 31
27 32
28 32
29 32
30 32
37 39
37 41
39 41
46 48
46 49
46 50
46 51
46 52
46 53
46 54
46 55
46 56
46 57
4...

result:

wrong answer Not correct

Subtask #3:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 368ms
memory: 19176kb

input:

2000 4

output:

4704
5 7
5 11
5 19
7 9
7 11
7 19
9 11
9 19
11 13
11 15
11 17
11 19
13 15
13 19
15 17
15 19
17 19
19 21
19 23
19 25
19 27
19 29
19 31
21 23
21 27
23 25
23 27
25 27
27 29
27 31
29 31
37 39
37 40
37 41
37 42
37 43
37 49
37 67
37 97
37 157
37 277
37 517
37 1003
38 43
39 43
40 43
41 43
43 45
43 46
43 47
...

result:

wrong answer Not correct

Subtask #4:

score: 0
Wrong Answer

Test #16:

score: 0
Wrong Answer
time: 368ms
memory: 19044kb

input:

2000 5

output:

3586
5 7
7 9
9 11
11 13
11 15
11 19
13 15
15 17
15 19
17 19
19 21
21 23
23 25
25 27
34 36
34 37
34 38
34 39
34 40
34 41
35 41
36 41
37 41
38 41
39 41
41 43
41 44
41 45
41 46
41 47
41 48
42 48
43 48
44 48
45 48
46 48
48 50
48 51
48 52
48 53
48 54
48 55
49 55
50 55
51 55
52 55
53 55
55 57
55 58
55 59
...

result:

wrong answer Not correct

Subtask #5:

score: 0
Wrong Answer

Test #21:

score: 0
Wrong Answer
time: 368ms
memory: 19248kb

input:

2000 6

output:

3113
7 9
9 11
11 13
13 15
15 17
17 19
17 21
17 29
17 45
19 21
21 23
21 25
21 29
21 45
23 25
25 27
25 29
25 45
27 29
29 31
29 33
29 37
29 41
29 45
31 33
33 35
33 37
33 45
35 37
37 39
37 41
37 45
39 41
41 43
41 45
43 45
45 47
45 49
45 53
45 57
45 61
45 65
45 69
47 49
49 51
49 53
49 61
51 53
53 55
53 5...

result:

wrong answer Not correct

Subtask #6:

score: 0
Wrong Answer

Test #26:

score: 0
Wrong Answer
time: 387ms
memory: 19128kb

input:

1999 7

output:

2588
7 9
9 11
11 13
13 15
15 17
17 19
17 21
19 21
21 23
21 25
23 25
25 27
25 29
27 29
29 31
29 33
31 33
33 35
33 37
33 41
33 49
35 37
37 39
37 41
39 41
41 43
41 45
41 49
43 45
45 47
45 49
47 49
49 51
49 53
51 53
53 55
53 57
55 57
57 59
57 61
59 61
61 63
61 65
63 65
65 67
67 69
69 71
71 73
73 75
75 7...

result:

wrong answer Not correct

Subtask #7:

score: 0
Wrong Answer

Test #31:

score: 0
Wrong Answer
time: 368ms
memory: 18980kb

input:

1995 8

output:

2411
8 10
10 12
12 14
14 16
16 18
18 20
20 22
20 24
22 24
24 26
24 28
26 28
28 30
28 32
30 32
32 34
32 36
34 36
36 38
36 40
38 40
40 42
40 44
40 48
40 56
40 72
42 44
44 46
44 48
46 48
48 50
48 52
48 56
48 72
50 52
52 54
52 56
54 56
56 58
56 60
56 64
56 72
58 60
60 62
60 64
62 64
64 66
64 68
64 72
66...

result:

wrong answer Not correct

Subtask #8:

score: 0
Wrong Answer

Test #36:

score: 0
Wrong Answer
time: 372ms
memory: 19040kb

input:

1997 9

output:

2063
9 11
11 13
13 15
15 17
17 19
19 21
21 23
23 25
23 27
25 27
27 29
27 31
29 31
31 33
31 35
33 35
35 37
35 39
37 39
39 41
39 43
41 43
43 45
43 47
43 51
45 47
47 49
47 51
49 51
51 53
51 55
51 59
53 55
55 57
55 59
57 59
59 61
59 63
59 67
61 63
63 65
63 67
65 67
67 69
67 71
67 75
69 71
71 73
71 75
73...

result:

wrong answer Not correct

Subtask #9:

score: 0
Wrong Answer

Test #41:

score: 0
Wrong Answer
time: 367ms
memory: 19076kb

input:

1995 10

output:

2092
10 12
12 14
14 16
16 18
18 20
20 22
22 24
24 26
26 28
26 30
28 30
30 32
30 34
32 34
34 36
34 38
36 38
38 40
38 42
40 42
42 44
42 46
44 46
46 48
46 50
48 50
50 52
50 54
50 58
52 54
54 56
54 58
56 58
58 60
58 62
58 66
60 62
62 64
62 66
64 66
66 68
66 70
66 74
68 70
70 72
70 74
72 74
74 76
74 78
7...

result:

wrong answer Not correct

Subtask #10:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 368ms
memory: 19072kb

input:

1993 11

output:

1933
11 13
13 15
15 17
17 19
19 21
21 23
23 25
25 27
27 29
29 31
29 33
31 33
33 35
33 37
35 37
37 39
37 41
39 41
41 43
41 45
43 45
45 47
45 49
47 49
49 51
49 53
51 53
53 55
53 57
55 57
57 59
57 61
57 65
59 61
61 63
61 65
63 65
65 67
65 69
65 73
67 69
69 71
69 73
71 73
73 75
73 77
73 81
75 77
77 79
7...

result:

wrong answer Not correct

Subtask #11:

score: 0
Wrong Answer

Test #51:

score: 0
Wrong Answer
time: 368ms
memory: 19092kb

input:

1999 12

output:

1943
12 14
14 16
16 18
18 20
20 22
22 24
24 26
26 28
28 30
30 32
32 34
32 36
34 36
36 38
36 40
38 40
40 42
40 44
42 44
44 46
44 48
46 48
48 50
48 52
50 52
52 54
52 56
54 56
56 58
56 60
58 60
60 62
60 64
62 64
64 66
64 68
64 72
66 68
68 70
68 72
70 72
72 74
72 76
72 80
74 76
76 78
76 80
78 80
80 82
8...

result:

wrong answer Not correct

Subtask #12:

score: 0
Wrong Answer

Test #56:

score: 0
Wrong Answer
time: 371ms
memory: 18928kb

input:

1981 13

output:

1887
13 15
15 17
17 19
19 21
21 23
23 25
25 27
27 29
29 31
31 33
33 35
35 37
35 39
37 39
39 41
39 43
41 43
43 45
43 47
45 47
47 49
47 51
49 51
51 53
51 55
53 55
55 57
55 59
57 59
59 61
59 63
61 63
63 65
63 67
65 67
67 69
67 71
69 71
71 73
71 75
71 79
73 75
75 77
75 79
77 79
79 81
79 83
79 87
81 83
8...

result:

wrong answer Not correct

Subtask #13:

score: 0
Wrong Answer

Test #61:

score: 0
Wrong Answer
time: 367ms
memory: 18992kb

input:

1979 14

output:

1866
14 16
16 18
18 20
20 22
22 24
24 26
26 28
28 30
30 32
32 34
34 36
36 38
38 40
38 42
40 42
42 44
42 46
44 46
46 48
46 50
48 50
50 52
50 54
52 54
54 56
54 58
56 58
58 60
58 62
60 62
62 64
62 66
64 66
66 68
66 70
68 70
70 72
70 74
72 74
74 76
74 78
76 78
78 80
78 82
78 86
80 82
82 84
82 86
84 86
8...

result:

wrong answer Not correct

Subtask #14:

score: 0
Wrong Answer

Test #66:

score: 0
Wrong Answer
time: 371ms
memory: 19328kb

input:

2000 15

output:

1863
16 18
18 20
20 22
22 24
24 26
26 28
28 30
30 32
32 34
34 36
36 38
38 40
40 42
42 44
44 46
44 48
46 48
48 50
48 52
50 52
52 54
52 56
54 56
56 58
56 60
58 60
60 62
60 64
62 64
64 66
64 68
66 68
68 70
68 72
70 72
72 74
72 76
74 76
76 78
76 80
78 80
80 82
80 84
82 84
84 86
84 88
86 88
88 90
88 92
9...

result:

wrong answer Not correct