QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#481599#5418. Color the TreeFarmer_DWA 10ms9344kbC++171.7kb2024-07-17 11:10:152024-07-17 11:10:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
4
10 15 40 1
1 2
2 3
2 4
5
10 5 1 100 1000
1 2
2 3
2 4
4 5
4
1000 200 10 8
1 2
2 3
3 4

output:

35
17
1218

result:

ok 3 number(s): "35 17 1218"

Test #2:

score: -100
Wrong Answer
time: 10ms
memory: 9092kb

input:

3000
54
43 44 11 49 17 14 7 30 35 12 34 14 15 8 29 47 30 31 39 17 26 23 26 45 34 50 49 13 35 18 29 15 13 44 47 5 22 20 19 46 30 22 26 13 47 46 43 27 48 48 13 14 30 44
1 2
1 3
2 4
3 5
4 6
2 7
4 8
1 9
3 10
1 11
8 12
2 13
9 14
1 15
1 16
15 17
15 18
7 19
1 20
19 21
13 22
10 23
17 24
9 25
9 26
24 27
8 28...

output:

57
8 47 7 50 6 9 37 14 28 28 17 47 43 14 7 22 27 39 31 34 27 8 36 16 43 50 39 43 46 29 21 24 10 25 6 10 25 48 42 22 48 38 22 7 17 19 21 37 22 10 24 34 28 7 48 26 35 
1 2
1 3
1 5
1 18
2 6
2 7
2 16
2 50
3 4
3 14
3 24
4 11
4 45
6 42
6 49
7 8
7 9
8 10
8 15
8 36
9 12
9 55
10 44
11 13
11 27
11 43
12 21
12...

result:

wrong answer 1st numbers differ - expected: '180', found: '57'