QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#312978#5176. 多控制反转sxzxafu35 0ms3996kbC++14736b2024-01-24 15:16:102024-01-24 15:16:11

详细

Subtask #1:

score: 15
Accepted

Test #1:

score: 15
Accepted
time: 0ms
memory: 3988kb

input:

0 2 1 1

output:

1
 1 0

result:

ok OK.

Test #2:

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

input:

13 28 105 1

output:

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

result:

ok OK.

Test #3:

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

input:

5 12 41 1

output:

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

result:

ok OK.

Test #4:

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

input:

20 42 161 1

output:

76
3 0 21 20 
3 1 22 21 
3 2 23 22 
3 3 24 23 
3 4 25 24 
3 5 26 25 
3 6 27 26 
3 7 28 27 
3 8 29 28 
3 9 30 29 
3 10 31 30 
3 11 32 31 
3 12 33 32 
3 13 34 33 
3 14 35 34 
3 15 36 35 
3 16 37 36 
3 17 38 37 
3 18 39 38 
2 19 39 
3 18 39 38 
3 17 38 37 
3 16 37 36 
3 15 36 35 
3 14 35 34 
3 13 34 33...

result:

ok OK.

Subtask #2:

score: 10
Accepted

Dependency #1:

100%
Accepted

Test #5:

score: 10
Accepted
time: 0ms
memory: 3764kb

input:

48 98 385 2

output:

188
3 0 49 48 
3 1 50 49 
3 2 51 50 
3 3 52 51 
3 4 53 52 
3 5 54 53 
3 6 55 54 
3 7 56 55 
3 8 57 56 
3 9 58 57 
3 10 59 58 
3 11 60 59 
3 12 61 60 
3 13 62 61 
3 14 63 62 
3 15 64 63 
3 16 65 64 
3 17 66 65 
3 18 67 66 
3 19 68 67 
3 20 69 68 
3 21 70 69 
3 22 71 70 
3 23 72 71 
3 24 73 72 
3 25 7...

result:

ok OK.

Test #6:

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

input:

41 84 329 2

output:

160
3 0 42 41 
3 1 43 42 
3 2 44 43 
3 3 45 44 
3 4 46 45 
3 5 47 46 
3 6 48 47 
3 7 49 48 
3 8 50 49 
3 9 51 50 
3 10 52 51 
3 11 53 52 
3 12 54 53 
3 13 55 54 
3 14 56 55 
3 15 57 56 
3 16 58 57 
3 17 59 58 
3 18 60 59 
3 19 61 60 
3 20 62 61 
3 21 63 62 
3 22 64 63 
3 23 65 64 
3 24 66 65 
3 25 6...

result:

ok OK.

Test #7:

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

input:

50 102 401 2

output:

196
3 0 51 50 
3 1 52 51 
3 2 53 52 
3 3 54 53 
3 4 55 54 
3 5 56 55 
3 6 57 56 
3 7 58 57 
3 8 59 58 
3 9 60 59 
3 10 61 60 
3 11 62 61 
3 12 63 62 
3 13 64 63 
3 14 65 64 
3 15 66 65 
3 16 67 66 
3 17 68 67 
3 18 69 68 
3 19 70 69 
3 20 71 70 
3 21 72 71 
3 22 73 72 
3 23 74 73 
3 24 75 74 
3 25 7...

result:

ok OK.

Subtask #3:

score: 10
Accepted

Dependency #2:

100%
Accepted

Test #8:

score: 10
Accepted
time: 0ms
memory: 3972kb

input:

0 2 1 3

output:

1
 1 0

result:

ok OK.

Test #9:

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

input:

19 40 153 3

output:

72
3 0 20 19 
3 1 21 20 
3 2 22 21 
3 3 23 22 
3 4 24 23 
3 5 25 24 
3 6 26 25 
3 7 27 26 
3 8 28 27 
3 9 29 28 
3 10 30 29 
3 11 31 30 
3 12 32 31 
3 13 33 32 
3 14 34 33 
3 15 35 34 
3 16 36 35 
3 17 37 36 
2 18 37 
3 17 37 36 
3 16 36 35 
3 15 35 34 
3 14 34 33 
3 13 33 32 
3 12 32 31 
3 11 31 30...

result:

ok OK.

Test #10:

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

input:

47 96 377 3

output:

184
3 0 48 47 
3 1 49 48 
3 2 50 49 
3 3 51 50 
3 4 52 51 
3 5 53 52 
3 6 54 53 
3 7 55 54 
3 8 56 55 
3 9 57 56 
3 10 58 57 
3 11 59 58 
3 12 60 59 
3 13 61 60 
3 14 62 61 
3 15 63 62 
3 16 64 63 
3 17 65 64 
3 18 66 65 
3 19 67 66 
3 20 68 67 
3 21 69 68 
3 22 70 69 
3 23 71 70 
3 24 72 71 
3 25 7...

result:

ok OK.

Test #11:

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

input:

25 52 201 3

output:

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

result:

ok OK.

Test #12:

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

input:

50 102 401 3

output:

196
3 0 51 50 
3 1 52 51 
3 2 53 52 
3 3 54 53 
3 4 55 54 
3 5 56 55 
3 6 57 56 
3 7 58 57 
3 8 59 58 
3 9 60 59 
3 10 61 60 
3 11 62 61 
3 12 63 62 
3 13 64 63 
3 14 65 64 
3 15 66 65 
3 16 67 66 
3 17 68 67 
3 18 69 68 
3 19 70 69 
3 20 71 70 
3 21 72 71 
3 22 73 72 
3 23 74 73 
3 24 75 74 
3 25 7...

result:

ok OK.

Subtask #4:

score: 0
Wrong Answer

Test #13:

score: 10
Accepted
time: 0ms
memory: 3832kb

input:

0 2 1 4

output:

1
 1 0

result:

ok OK.

Test #14:

score: -10
Wrong Answer
time: 0ms
memory: 3768kb

input:

18 20 325 4

output:

0

result:

wrong answer Wrong solution.

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Wrong Answer

Test #20:

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

input:

14 16 393 6

output:

0

result:

wrong answer Wrong solution.

Subtask #7:

score: 0
Skipped

Dependency #2:

100%
Accepted

Dependency #4:

0%

Subtask #8:

score: 0
Skipped

Dependency #3:

100%
Accepted

Dependency #5:

0%