QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#136148#3269. 末日魔法少女计划slime#23.679587 6ms37388kbC++141.8kb2023-08-07 12:59:442024-07-04 01:22:05

详细

Subtask #1:

score: 22
Accepted

Test #1:

score: 22
Accepted
time: 6ms
memory: 35580kb

input:

2000 2

output:

15974
0 2
0 6
0 14
0 30
0 61
0 124
0 249
0 499
0 1000
1 6
1 14
1 30
1 61
1 124
1 249
1 499
1 1000
2 4
2 5
2 6
2 14
2 30
2 61
2 124
2 249
2 499
2 1000
3 6
3 14
3 30
3 61
3 124
3 249
3 499
3 1000
4 6
4 14
4 30
4 61
4 124
4 249
4 499
4 1000
5 14
5 30
5 61
5 124
5 249
5 499
5 1000
6 8
6 9
6 10
6 11
6 12...

result:

ok 

Test #2:

score: 22
Accepted
time: 0ms
memory: 37388kb

input:

1999 2

output:

15965
0 2
0 6
0 14
0 30
0 61
0 124
0 249
0 499
0 999
1 6
1 14
1 30
1 61
1 124
1 249
1 499
1 999
2 4
2 5
2 6
2 14
2 30
2 61
2 124
2 249
2 499
2 999
3 6
3 14
3 30
3 61
3 124
3 249
3 499
3 999
4 6
4 14
4 30
4 61
4 124
4 249
4 499
4 999
5 14
5 30
5 61
5 124
5 249
5 499
5 999
6 8
6 9
6 10
6 11
6 12
6 13
...

result:

ok 

Test #3:

score: 22
Accepted
time: 3ms
memory: 37152kb

input:

1992 2

output:

15902
0 2
0 6
0 14
0 30
0 61
0 123
0 248
0 497
0 996
1 6
1 14
1 30
1 61
1 123
1 248
1 497
1 996
2 4
2 5
2 6
2 14
2 30
2 61
2 123
2 248
2 497
2 996
3 6
3 14
3 30
3 61
3 123
3 248
3 497
3 996
4 6
4 14
4 30
4 61
4 123
4 248
4 497
4 996
5 14
5 30
5 61
5 123
5 248
5 497
5 996
6 8
6 9
6 10
6 11
6 12
6 13
...

result:

ok 

Test #4:

score: 22
Accepted
time: 4ms
memory: 36656kb

input:

1973 2

output:

15731
0 2
0 6
0 14
0 29
0 60
0 122
0 245
0 492
0 986
1 6
1 14
1 29
1 60
1 122
1 245
1 492
1 986
2 4
2 5
2 6
2 14
2 29
2 60
2 122
2 245
2 492
2 986
3 6
3 14
3 29
3 60
3 122
3 245
3 492
3 986
4 6
4 14
4 29
4 60
4 122
4 245
4 492
4 986
5 14
5 29
5 60
5 122
5 245
5 492
5 986
6 8
6 9
6 10
6 11
6 12
6 13
...

result:

ok 

Test #5:

score: 22
Accepted
time: 3ms
memory: 35508kb

input:

1936 2

output:

15398
0 2
0 6
0 14
0 29
0 59
0 120
0 241
0 483
0 968
1 6
1 14
1 29
1 59
1 120
1 241
1 483
1 968
2 4
2 5
2 6
2 14
2 29
2 59
2 120
2 241
2 483
2 968
3 6
3 14
3 29
3 59
3 120
3 241
3 483
3 968
4 6
4 14
4 29
4 59
4 120
4 241
4 483
4 968
5 14
5 29
5 59
5 120
5 241
5 483
5 968
6 8
6 9
6 10
6 11
6 12
6 13
...

result:

ok 

Subtask #2:

score: 1.67959
Acceptable Answer

Test #6:

score: 1.72876
Acceptable Answer
time: 4ms
memory: 35088kb

input:

1936 3

output:

13038
0 6
0 22
0 70
0 214
0 645
1 3
1 6
1 22
1 70
1 214
1 645
2 6
2 22
2 70
2 214
2 645
3 5
3 6
3 22
3 70
3 214
3 645
4 6
4 22
4 70
4 214
4 645
5 22
5 70
5 214
5 645
6 8
6 9
6 10
6 11
6 12
6 13
6 14
6 22
6 70
6 214
6 645
7 14
7 22
7 70
7 214
7 645
8 10
8 11
8 14
8 22
8 70
8 214
8 645
9 11
9 14
9 22
...

result:

points 0.12348270940

Test #7:

score: 1.67959
Acceptable Answer
time: 3ms
memory: 35224kb

input:

2000 3

output:

13516
0 7
0 23
0 73
0 221
0 666
1 3
1 4
1 7
1 23
1 73
1 221
1 666
2 4
2 7
2 23
2 73
2 221
2 666
3 7
3 23
3 73
3 221
3 666
4 6
4 7
4 23
4 73
4 221
4 666
5 7
5 23
5 73
5 221
5 666
6 23
6 73
6 221
6 666
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 23
7 73
7 221
7 666
8 15
8 23
8 73
8 221
8 666
9 11
9 12
9 15
9 ...

result:

points 0.1199705210

Test #8:

score: 1.67984
Acceptable Answer
time: 4ms
memory: 37268kb

input:

1999 3

output:

13509
0 7
0 23
0 73
0 221
0 666
1 3
1 4
1 7
1 23
1 73
1 221
1 666
2 4
2 7
2 23
2 73
2 221
2 666
3 7
3 23
3 73
3 221
3 666
4 6
4 7
4 23
4 73
4 221
4 666
5 7
5 23
5 73
5 221
5 666
6 23
6 73
6 221
6 666
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 23
7 73
7 221
7 666
8 15
8 23
8 73
8 221
8 666
9 11
9 12
9 15
9 ...

result:

points 0.11998858130

Test #9:

score: 1.68162
Acceptable Answer
time: 4ms
memory: 36860kb

input:

1992 3

output:

13460
0 7
0 23
0 72
0 220
0 663
1 3
1 4
1 7
1 23
1 72
1 220
1 663
2 4
2 7
2 23
2 72
2 220
2 663
3 7
3 23
3 72
3 220
3 663
4 6
4 7
4 23
4 72
4 220
4 663
5 7
5 23
5 72
5 220
5 663
6 23
6 72
6 220
6 663
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 23
7 72
7 220
7 663
8 15
8 23
8 72
8 220
8 663
9 11
9 12
9 15
9 ...

result:

points 0.12011552190

Test #10:

score: 1.71089
Acceptable Answer
time: 4ms
memory: 37096kb

input:

1973 3

output:

13304
0 7
0 23
0 72
0 218
0 657
1 3
1 4
1 7
1 23
1 72
1 218
1 657
2 4
2 7
2 23
2 72
2 218
2 657
3 7
3 23
3 72
3 218
3 657
4 6
4 7
4 23
4 72
4 218
4 657
5 7
5 23
5 72
5 218
5 657
6 23
6 72
6 218
6 657
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 23
7 72
7 218
7 657
8 15
8 23
8 72
8 218
8 657
9 11
9 12
9 15
9 ...

result:

points 0.12220649160

Subtask #3:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 0ms
memory: 36580kb

input:

2000 4

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #4:

score: 0
Wrong Answer

Test #16:

score: 0
Wrong Answer
time: 0ms
memory: 34904kb

input:

2000 5

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #5:

score: 0
Wrong Answer

Test #21:

score: 0
Wrong Answer
time: 0ms
memory: 36360kb

input:

2000 6

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #6:

score: 0
Wrong Answer

Test #26:

score: 0
Wrong Answer
time: 0ms
memory: 36484kb

input:

1999 7

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #7:

score: 0
Wrong Answer

Test #31:

score: 0
Wrong Answer
time: 0ms
memory: 34688kb

input:

1995 8

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #8:

score: 0
Wrong Answer

Test #36:

score: 0
Wrong Answer
time: 0ms
memory: 36500kb

input:

1997 9

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #9:

score: 0
Wrong Answer

Test #41:

score: 0
Wrong Answer
time: 0ms
memory: 34824kb

input:

1995 10

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #10:

score: 0
Wrong Answer

Test #46:

score: 0
Wrong Answer
time: 0ms
memory: 34796kb

input:

1993 11

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #11:

score: 0
Wrong Answer

Test #51:

score: 0
Wrong Answer
time: 0ms
memory: 36620kb

input:

1999 12

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #12:

score: 0
Wrong Answer

Test #56:

score: 0
Wrong Answer
time: 0ms
memory: 36520kb

input:

1981 13

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #13:

score: 0
Wrong Answer

Test #61:

score: 0
Wrong Answer
time: 0ms
memory: 36568kb

input:

1979 14

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #14:

score: 0
Wrong Answer

Test #66:

score: 0
Wrong Answer
time: 0ms
memory: 36456kb

input:

2000 15

output:


result:

wrong output format Unexpected end of file - int32 expected