QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#379239#8575. Three Person Tree Gameucup-team1376#WA 15ms6000kbC++141.6kb2024-04-06 16:43:402024-04-06 16:43:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 6000kb

input:

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

output:

A
DRAW

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 15ms
memory: 5680kb

input:

10000
20
2 12 1
16 15
3 2
16 17
14 13
11 12
9 8
10 9
18 17
6 5
18 19
13 12
5 4
7 6
20 19
14 15
3 4
11 10
1 2
8 7
20
12 13 1
18 13
12 11
19 15
17 16
10 14
4 2
15 11
6 5
3 2
4 13
20 8
11 9
3 7
14 16
5 8
5 4
9 6
10 3
1 2
17
2 17 15
9 10
5 4
9 8
2 11
6 7
8 7
13 4
2 3
6 15
5 6
17 8
2 1
3 4
16 7
14 5
3 12...

output:

A
BCB
DRAW
C
A
AA
DRAW
C
B
B
BDRAW
A
DRAW
ACDRAW
C
BA
AA
B
B
BC
A
A
A
BB
DRAW
C
DRAW
A
A
C
C
C
BB
C
C
DRAW
A
BC
B
DRAW
A
CDRAW
C
B
C
DRAW
DRAW
A
A
C
DRAW
DRAW
B
B
B
A
DRAW
B
B
AADRAW
B
A
A
B
DRAW
C
B
AC
DRAW
A
BA
A
C
B
B
B
AA
B
B
A
CDRAW
B
AB
C
A
A
C
A
A
DRAW
A
A
C
C
DRAW
C
AB
A
DRAW
C
CDRAW
DRAW
A
...

result:

wrong answer 2nd lines differ - expected: 'B', found: 'BCB'