There is a nice general method for calculating the arithmetic genus of a reducible curve like this where a bunch of curves are being glued transversely. It uses the (equivalent) description of the arithmetic genus of a curve $X$ over a field as the dimension of the cohomology group $H^1(\mathcal O_X)$.
So suppose $C_1$ and $C_2$ are curves over a field. Let $X$ denote the curve we get by glueing a point $p_1 \in C_1$ transversely to a point $p_2 \in C_2$. Call the image of the glueing points $p \in X$. Then we have an exact sequence of sheaves on $X$ of the form
$$ 0 \rightarrow O_X \rightarrow \mathcal O_{C_1} \oplus \mathcal O_{C_2} \rightarrow k_p \rightarrow 0 $$
where $k_p$ is the skyscraper sheaf supported at $p$. (The first map is pullback of functions; the second is zero away from $p$, and $(f_1,f_2) \mapsto f_1(p)-f_2(p)$ on open sets containing $p$.)
Now take cohomology of this sequence: you get
$$0 \rightarrow H^0(O_X) \rightarrow H^0(\mathcal O_{C_1}) \oplus H^0(\mathcal O_{C_2}) \rightarrow H^0(k_p) \rightarrow H^1(O_X) \rightarrow H^1(\mathcal O_{C_1}) \oplus H^1(\mathcal O_{C_2}) \rightarrow 0$$
where the final zero comes from the fact that $k_p$ is supported at a single point.
Now, I leave it to you to check that the first three nonzero terms give a short exact sequence. That implies that $$H^1(O_X)=H^1(\mathcal O_{C_1}) \oplus H^1(\mathcal O_{C_2})$$
In other words, arithmetic genus is additive when we glue curves transversely at a point! Notice that we didn't require anything to be smooth or irreducible, so you can apply this in your situation in two steps by glueing two of the axes together, then glueing on the third.
Exercise: Modify the above argument to show that if $Y$ is a curve obtained by transverse glueing of two points on the same connected curve $X$, then
$$\operatorname{dim} H^1(\mathcal O_Y) = \operatorname{dim} H^1(\mathcal O_X)+1$$
Use this to figure out what happens when you glue any number of curves transversely at any number of points!
genus, the ring $\mathbb{Q}[x_0,x_1,x_2,x_3]$ and the ideal $(x_1x_2,x_1x_3,x_2x_3)$ – Jan-Magnus Økland May 25 '15 at 01:46