QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#112063#1861. Nondeterministic Finite AutomatonSegmentTreeWA 2ms3360kbC++171.4kb2023-06-09 18:17:322023-06-09 18:17:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3356kb

input:

6

output:

9
0 0
0 1
0 2
0 4
1 3
2 1
3 5
4 2
5 4
13
0 1
0 2
0 3
0 4
0 5
1 2
1 5
2 1
2 4
2 5
3 2
5 2
5 4
6
0 1 2 3 4 5

result:

ok n = 6

Test #2:

score: -100
Wrong Answer
time: 2ms
memory: 3360kb

input:

20

output:

0
0
54
1
2
2
3
3
1
4
2
5
3
6
4
7
1
8
2
9
3
10
4
11
5
12
1
13
2
14
3
15
4
16
5
17
6
18
7
19
1
0
1
2
4
5
6
8
9
10
11
13
14
15
16
17
18

result:

wrong answer Integer 54 violates the range [0, 20]