QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#555783#7942. $K$ Subsequencesrotcar08WA 21ms3900kbC++14662b2024-09-10 09:53:042024-09-10 09:53:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3892kb

input:

5
3 2
1 -1 1
4 2
-1 1 1 -1
7 3
1 1 1 1 1 1 1
10 3
1 1 1 1 -1 -1 1 1 1 1
12 4
1 1 1 1 -1 -1 -1 -1 1 1 1 1

output:

1 1 1 
1 1 2 2 
1 2 3 1 2 3 1 
1 2 3 1 1 3 3 1 2 3 
1 2 3 4 3 2 1 4 1 2 3 4 

result:

ok Correct (5 test cases)

Test #2:

score: -100
Wrong Answer
time: 21ms
memory: 3900kb

input:

18434
10 1
-1 1 1 -1 -1 1 -1 -1 1 1
10 2
-1 -1 -1 1 1 -1 1 1 1 1
10 2
1 -1 -1 -1 -1 1 1 -1 1 1
10 7
1 1 -1 1 -1 1 1 -1 -1 1
9 1
-1 1 -1 1 1 -1 1 -1 1
8 1
-1 -1 -1 -1 1 1 -1 -1
10 3
-1 -1 -1 1 1 1 1 -1 -1 -1
9 1
1 -1 -1 1 -1 -1 -1 -1 -1
10 10
-1 1 1 1 1 1 1 1 1 1
10 4
-1 1 -1 1 -1 1 1 -1 1 1
9 3
1 1 ...

output:

1 1 1 1 1 1 1 1 1 1 
1 2 2 1 2 2 2 1 2 1 
1 1 2 1 2 1 2 2 2 1 
1 2 1 1 2 2 3 3 2 2 
2 1 1 1 2 2 2 2 2 
2 1 7 7 1 2 2 1 
7 7 7 1 2 3 4 4 3 2 
1 1 7 1 1 7 7 7 7 
10 1 2 3 4 5 6 7 8 9 
9 1 8 2 7 3 4 6 6 7 
1 2 7 6 3 5 5 5 4 
1 2 3 3 4 5 5 5 
5 1 2 3 4 5 6 7 7 7 
1 7 6 2 5 4 3 4 4 
3 1 3 3 3 4 5 6 6 
1 ...

result:

wrong answer Integer element [index=1] equals to 2, violates the range [1, 1] (test case 5)