ACSL
2007 - 2008 American Computer Science League Contest #3
Junior Division Solutions
1. Graph Theory 1.
Arrows are drawn from the first vertex listed to the second one.
There are 4 vertices and 6 edges.
2. Graph Theory 2. As shown
0 1 1 0 1
0 0 1 0 0
1 0 1 1 0
0 0 0 0 1
0 0 0 1 0
3. Digital Electronics 3. 0
The The
circuit translatesare
parentheses as follows:
needed because of
=
=
=
4. Digital Electronics 4. (0,0), (0,1), (1,0)
The circuit translates to
=
If , then (0,*)
If , then (1,0)
5. What Does This Program Do? 5. 164
The program produces the following array:
1 4 9
1 16 36
1 3 81
2 4 6
S contains the sum of the elements = 164
3 2 4 5 1
0 1 3 2 6
1 2 1 3 4