QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#259253#3269. 末日魔法少女计划flower#22 101ms19836kbC++202.9kb2023-11-20 19:28:482024-07-04 03:07:46

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 22
Accepted

Test #1:

score: 22
Accepted
time: 93ms
memory: 19292kb

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: 101ms
memory: 19368kb

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: 97ms
memory: 19836kb

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: 97ms
memory: 19432kb

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: 97ms
memory: 18564kb

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: 99ms
memory: 19008kb

input:

1936 3

output:

7765
0 2
0 5
0 1894
0 1895
0 1896
0 1897
1 5
2 4
2 5
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
2 21
2 22
2 23
2 24
2 25
2 26
2 27
2 28
2 29
2 30
2 31
2 32
2 33
2 34
2 35
2 36
2 37
2 38
2 39
2 40
2 41
2 42
2 43
2 44
3 5
3 44
4 44
5 7
5 8
5 9
5 10
5 15
5 20
5 25
5 30
5 35
...

result:

wrong answer Not correct

Subtask #3:

score: 0
Wrong Answer

Test #11:

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

input:

2000 4

output:

4826
0 2
1 3
1 4
1 5
1 6
1 7
2 4
2 5
2 7
3 7
4 7
5 7
7 9
7 10
7 11
7 12
7 13
7 19
7 37
7 67
7 127
7 253
7 505
7 1003
8 13
9 13
10 13
11 13
13 15
13 16
13 17
13 18
13 19
13 37
13 67
13 127
13 253
13 505
13 1003
14 19
15 19
16 19
17 19
19 21
19 22
19 23
19 24
19 25
19 31
19 37
19 67
19 127
19 253
19 5...

result:

wrong answer Not correct

Subtask #4:

score: 0
Wrong Answer

Test #16:

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

input:

2000 5

output:

3740
0 142
0 148
0 154
0 160
0 166
0 172
0 178
0 940
0 946
1 142
2 142
3 142
4 142
5 142
6 142
7 142
8 142
9 142
10 142
11 142
12 142
13 142
14 142
15 142
16 142
17 142
18 142
19 142
20 142
21 142
22 142
23 142
24 142
25 142
26 142
27 142
28 142
29 142
30 142
31 142
32 142
33 142
34 142
35 142
36 14...

result:

wrong answer Not correct

Subtask #5:

score: 0
Wrong Answer

Test #21:

score: 0
Wrong Answer
time: 95ms
memory: 18952kb

input:

2000 6

output:

3706
0 3
0 8
0 16
0 24
0 32
0 40
0 48
0 56
0 64
0 72
0 80
0 88
0 96
0 104
0 112
0 120
0 128
0 136
0 144
0 152
0 160
1 3
1 8
2 8
3 5
3 6
3 7
3 8
4 8
5 8
6 8
8 10
8 11
8 12
8 13
8 14
8 15
8 16
8 160
9 16
10 16
11 16
12 16
13 16
14 16
16 18
16 19
16 20
16 21
16 22
16 23
16 24
16 160
17 24
18 24
19 24
2...

result:

wrong answer Not correct

Subtask #6:

score: 0
Wrong Answer

Test #26:

score: 0
Wrong Answer
time: 95ms
memory: 19004kb

input:

1999 7

output:

3490
0 107
0 115
0 123
0 131
0 139
0 147
0 155
0 163
0 171
0 179
0 187
0 195
0 203
0 211
0 219
0 227
1 107
2 107
3 107
4 107
5 107
6 107
7 107
8 107
9 107
10 107
11 107
12 107
13 107
14 107
15 107
16 107
17 107
18 107
19 107
20 107
21 107
22 107
23 107
24 107
25 107
26 107
27 107
28 107
29 107
30 10...

result:

wrong answer Not correct

Subtask #7:

score: 0
Wrong Answer

Test #31:

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

input:

1995 8

output:

3538
0 97
0 106
0 115
0 124
0 133
0 142
0 151
0 160
0 169
0 178
1 97
2 97
3 97
4 97
5 97
6 97
7 97
8 97
9 97
10 97
11 97
12 97
13 97
14 97
15 97
16 97
17 97
18 97
19 97
20 97
21 97
22 97
23 97
24 97
25 97
26 97
27 97
28 97
29 97
30 97
31 97
32 97
33 97
34 97
35 97
36 97
37 97
38 97
39 97
40 97
41 97...

result:

wrong answer Not correct

Subtask #8:

score: 0
Wrong Answer

Test #36:

score: 0
Wrong Answer
time: 95ms
memory: 18176kb

input:

1997 9

output:

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

result:

wrong answer Not correct

Subtask #9:

score: 0
Wrong Answer

Test #41:

score: 0
Wrong Answer
time: 99ms
memory: 19184kb

input:

1995 10

output:

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

result:

wrong answer Not correct

Subtask #10:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 95ms
memory: 19188kb

input:

1993 11

output:

3644
0 72
0 84
0 96
0 108
0 120
0 132
0 144
0 156
1 72
2 72
3 72
4 72
5 72
6 72
7 72
8 72
9 72
10 72
11 72
12 72
13 72
14 72
15 72
16 72
17 72
18 72
19 72
20 72
21 72
22 72
23 72
24 72
25 72
26 72
27 72
28 72
29 72
30 72
31 72
32 72
33 72
34 72
35 72
36 72
37 72
38 72
39 72
40 72
41 72
42 72
43 72
4...

result:

wrong answer Not correct

Subtask #11:

score: 0
Wrong Answer

Test #51:

score: 0
Wrong Answer
time: 99ms
memory: 19008kb

input:

1999 12

output:

3677
0 70
0 83
0 96
0 109
0 122
0 135
1 70
2 70
3 70
4 70
5 70
6 70
7 70
8 70
9 70
10 70
11 70
12 70
13 70
14 70
15 70
16 70
17 70
18 70
19 70
20 70
21 70
22 70
23 70
24 70
25 70
26 70
27 70
28 70
29 70
30 70
31 70
32 70
33 70
34 70
35 70
36 70
37 70
38 70
39 70
40 70
41 70
42 70
43 70
44 70
45 70
4...

result:

wrong answer Not correct

Subtask #12:

score: 0
Wrong Answer

Test #56:

score: 0
Wrong Answer
time: 95ms
memory: 17868kb

input:

1981 13

output:

3658
0 59
0 73
0 87
0 101
0 115
0 129
0 143
1 59
2 59
3 59
4 59
5 59
6 59
7 59
8 59
9 59
10 59
11 59
12 59
13 59
14 59
15 59
16 59
17 59
18 59
19 59
20 59
21 59
22 59
23 59
24 59
25 59
26 59
27 59
28 59
29 59
30 59
31 59
32 59
33 59
34 59
35 59
36 59
37 59
38 59
39 59
40 59
41 59
42 59
43 59
44 59
4...

result:

wrong answer Not correct

Subtask #13:

score: 0
Wrong Answer

Test #61:

score: 0
Wrong Answer
time: 99ms
memory: 18804kb

input:

1979 14

output:

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

result:

wrong answer Not correct

Subtask #14:

score: 0
Wrong Answer

Test #66:

score: 0
Wrong Answer
time: 99ms
memory: 18924kb

input:

2000 15

output:

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

result:

wrong answer Not correct