QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#259258#3269. 末日魔法少女计划flower#22 70ms19456kbC++202.9kb2023-11-20 19:32:142024-07-04 03:07:47

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 22
Accepted

Test #1:

score: 22
Accepted
time: 66ms
memory: 19456kb

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: 70ms
memory: 19384kb

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: 63ms
memory: 19436kb

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: 66ms
memory: 18976kb

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: 63ms
memory: 19224kb

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: 61ms
memory: 19076kb

input:

1936 3

output:

7686
0 48
1 8
1 48
2 8
2 48
3 5
3 8
3 48
4 8
4 48
5 7
5 8
5 48
6 8
6 48
7 48
8 10
8 11
8 12
8 16
8 20
8 24
8 28
8 32
8 36
8 40
8 48
9 12
9 48
10 12
10 48
11 48
12 14
12 15
12 16
12 20
12 24
12 28
12 32
12 36
12 40
12 48
13 16
13 48
14 16
14 48
15 48
16 18
16 19
16 20
16 24
16 28
16 32
16 36
16 40
16...

result:

wrong answer Not correct

Subtask #3:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 61ms
memory: 19136kb

input:

2000 4

output:

5102
0 170
1 7
1 170
2 7
2 170
3 7
3 170
4 7
4 170
5 7
5 170
6 170
7 9
7 10
7 11
7 12
7 13
7 25
7 43
7 85
7 170
8 13
8 170
9 13
9 170
10 13
10 170
11 13
11 170
12 170
13 15
13 16
13 17
13 18
13 19
13 25
13 43
13 85
13 170
14 19
14 170
15 19
15 170
16 19
16 170
17 19
17 170
18 170
19 21
19 22
19 23
1...

result:

wrong answer Not correct

Subtask #4:

score: 0
Wrong Answer

Test #16:

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

input:

2000 5

output:

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

result:

wrong answer Not correct

Subtask #5:

score: 0
Wrong Answer

Test #21:

score: 0
Wrong Answer
time: 66ms
memory: 18996kb

input:

2000 6

output:

3723
0 8
1 8
2 8
3 8
4 8
5 8
6 8
8 10
8 11
8 12
8 13
8 14
8 15
8 16
8 200
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 56
16 200
17 24
18 24
19 24
20 24
21 24
22 24
24 26
24 27
24 28
24 29
24 30
24 31
24 32
24 56
24 200
25 32
26 32
27 32
28 32
29 32
30 32
32 34
32 ...

result:

wrong answer Not correct

Subtask #6:

score: 0
Wrong Answer

Test #26:

score: 0
Wrong Answer
time: 61ms
memory: 19012kb

input:

1999 7

output:

3854
0 115
1 13
1 115
2 4
2 13
2 115
3 13
3 115
4 13
4 115
5 13
5 115
6 8
6 13
6 115
7 13
7 115
8 13
8 115
9 13
9 115
10 12
10 13
10 115
11 13
11 115
12 115
13 15
13 16
13 17
13 18
13 19
13 20
13 21
13 37
13 115
14 21
14 115
15 21
15 115
16 21
16 115
17 21
17 115
18 21
18 115
19 21
19 115
20 115
21 ...

result:

wrong answer Not correct

Subtask #7:

score: 0
Wrong Answer

Test #31:

score: 0
Wrong Answer
time: 61ms
memory: 18932kb

input:

1995 8

output:

3847
0 106
1 12
1 106
2 12
2 106
3 12
3 106
4 12
4 106
5 7
5 12
5 106
6 12
6 106
7 12
7 106
8 12
8 106
9 12
9 106
10 12
10 106
11 106
12 14
12 15
12 16
12 17
12 18
12 19
12 20
12 21
12 30
12 106
13 21
13 106
14 21
14 106
15 21
15 106
16 21
16 106
17 21
17 106
18 21
18 106
19 21
19 106
20 106
21 23
2...

result:

wrong answer Not correct

Subtask #8:

score: 0
Wrong Answer

Test #36:

score: 0
Wrong Answer
time: 65ms
memory: 18936kb

input:

1997 9

output:

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

result:

wrong answer Not correct

Subtask #9:

score: 0
Wrong Answer

Test #41:

score: 0
Wrong Answer
time: 61ms
memory: 18948kb

input:

1995 10

output:

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

result:

wrong answer Not correct

Subtask #10:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 61ms
memory: 19028kb

input:

1993 11

output:

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

result:

wrong answer Not correct

Subtask #11:

score: 0
Wrong Answer

Test #51:

score: 0
Wrong Answer
time: 58ms
memory: 19032kb

input:

1999 12

output:

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

result:

wrong answer Not correct

Subtask #12:

score: 0
Wrong Answer

Test #56:

score: 0
Wrong Answer
time: 61ms
memory: 18964kb

input:

1981 13

output:

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

result:

wrong answer Not correct

Subtask #13:

score: 0
Wrong Answer

Test #61:

score: 0
Wrong Answer
time: 62ms
memory: 19140kb

input:

1979 14

output:

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

result:

wrong answer Not correct

Subtask #14:

score: 0
Wrong Answer

Test #66:

score: 0
Wrong Answer
time: 61ms
memory: 17940kb

input:

2000 15

output:

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

result:

wrong answer Not correct