QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#112975#5955. Symmetric TreesGuanYunchang25 ✓277ms6996kbC++202.6kb2023-06-15 16:57:252023-06-15 16:57:26

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 7
Accepted

Test #1:

score: 7
Accepted
time: 3ms
memory: 5708kb

input:

100
9
I
P
T
X
E
A
X
E
A
2 8
7 9
6 8
4 6
1 3
3 5
8 9
1 2
4
S
S
S
P
1 2
1 3
2 4
12
Q
Q
Q
Q
Q
Q
Q
Q
Q
Q
Q
Q
1 9
3 5
2 12
9 12
8 10
5 6
5 10
2 11
3 4
2 4
7 8
6
Z
H
H
O
Q
Q
1 4
2 6
4 5
4 6
3 5
6
A
A
A
A
A
A
3 4
2 6
2 3
4 5
1 4
12
K
H
K
K
H
H
H
H
H
H
H
K
3 12
7 8
6 8
7 12
7 9
2 11
2 10
1 12
4 7
2 5
5 12
9...

output:

Case #1: SYMMETRIC
Case #2: SYMMETRIC
Case #3: SYMMETRIC
Case #4: SYMMETRIC
Case #5: SYMMETRIC
Case #6: NOT SYMMETRIC
Case #7: SYMMETRIC
Case #8: SYMMETRIC
Case #9: SYMMETRIC
Case #10: SYMMETRIC
Case #11: SYMMETRIC
Case #12: SYMMETRIC
Case #13: SYMMETRIC
Case #14: SYMMETRIC
Case #15: SYMMETRIC
Case ...

result:

ok 100 lines

Subtask #2:

score: 18
Accepted

Test #2:

score: 18
Accepted
time: 277ms
memory: 6996kb

input:

100
5771
P
P
P
P
P
U
P
U
U
P
P
P
P
P
U
P
P
U
P
U
P
U
P
U
U
U
U
P
P
U
P
U
P
U
P
U
U
U
P
P
P
U
P
P
P
U
P
U
P
U
P
U
P
U
U
P
U
P
U
U
U
U
P
U
P
P
P
P
U
P
U
U
U
U
U
U
U
U
P
U
U
U
P
P
P
U
U
U
U
P
P
P
U
P
P
U
P
U
P
U
U
U
U
U
P
U
P
U
U
U
U
P
U
U
U
P
U
P
U
P
U
U
P
P
P
U
U
P
P
U
P
P
P
U
P
U
P
U
P
P
P
P
P
P
P
P...

output:

Case #1: NOT SYMMETRIC
Case #2: SYMMETRIC
Case #3: SYMMETRIC
Case #4: SYMMETRIC
Case #5: NOT SYMMETRIC
Case #6: NOT SYMMETRIC
Case #7: SYMMETRIC
Case #8: NOT SYMMETRIC
Case #9: NOT SYMMETRIC
Case #10: NOT SYMMETRIC
Case #11: NOT SYMMETRIC
Case #12: SYMMETRIC
Case #13: SYMMETRIC
Case #14: NOT SYMMETR...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed