This is a 1-D heat equation with homogeneous boundary conditions and an initial condition $\sin(\pi x)$.
The standard solution for such a PDE using separation of variables is:
\[
u(x,t) = \sin(\pi x)\, e^{-t}
\]
since the eigenvalue is $\lambda_1 = \pi^2$ and the diffusion coefficient is $\frac{1}{\pi^2}$, giving decay factor:
\[
e^{-\lambda_1 \cdot \frac{1}{\pi^2} t} = e^{-t}
\]
Now evaluate at $x = 0.5$:
\[
u(0.5,t) = \sin\left(\frac{\pi}{2}\right) e^{-t} = 1 \cdot e^{-t}
\]
and
\[
u(0.5,0) = 1
\]
The given condition is:
\[
\frac{u(0.5,t)}{u(0.5,0)} = \frac{1}{e}
\]
Substitute the expressions:
\[
\frac{e^{-t}}{1} = e^{-1}
\]
Thus:
\[
e^{-t} = e^{-1}
\]
\[
t = 1
\]
Therefore, the correct value of $t$ is 1.
Final Answer: 1