\listfiles
\documentclass{jarticle}
\usepackage{array}

\begin{document}

\newcolumntype{I}{!{\vrule width 2pt}} % creates a vertical thick bar
\newlength\savedwidth
\newcommand{\wcline}[1]{\noalign{\global\savedwidth\arrayrulewidth\global
\arrayrulewidth 2pt}%
\cline{#1}
\noalign{\global\arrayrulewidth\savedwidth}}

\renewcommand{\arraystretch}{1.5}

\begin{tabular}{|ccc|}
  \hline
  a & b & c \\
  \wcline{2-2}
  \multicolumn{1}{|cI}{c} & \multicolumn{1}{cI}{e} & f \\
  \wcline{2-2}
  g & h & i \\
  \hline
\end{tabular}

\medskip

\begin{tabular}{|c|c|c|c|c|c|c|} \hline
  \multicolumn{1}{|c}{} & \multicolumn{1}{c|}{$Y$}&
  \multicolumn{5}{c|}{数\hspace{3zw}学} \\ \cline{3-7}
  \multicolumn{1}{|c}{$X$} & \multicolumn{1}{c|}{}&
  \multicolumn{1}{c|}{1} & 2 & 3 & 4       &
  \multicolumn{1}{c|}{5} \\ \hline\wcline{3-7}
     &  5  &\multicolumn{1}{Ic|}{1} & 3 & 1 & 0 &\multicolumn{1}{cI}{1} \\ \cline{2-7}
 英  &  4  &\multicolumn{1}{Ic|}{1} & 0 & 7 & 5 &\multicolumn{1}{cI}{1} \\ \cline{2-7}
     &  3  &\multicolumn{1}{Ic|}{2} & 1 & 0 & 9 &\multicolumn{1}{cI}{3} \\ \cline{2-7}
 語  &  2  &\multicolumn{1}{Ic|}{1} &$b$& 6 & 0 &\multicolumn{1}{cI}{$a$} \\ \cline{2-7}
     &  1  &\multicolumn{1}{Ic|}{0} & 0 & 1 & 1 &\multicolumn{1}{cI}{3} \\ \hline\wcline{3-7}
\end{tabular}

\end{document}

これから下のものは\texttt{array.sty}がないとき、上手くいく。

\documentclass{jarticle}

\makeatletter
\def\Cline#1{\@Cline#1\@nil}
\def\@Cline#1-#2\@nil{%
   \omit
   \@multicnt#1%
   \advance\@multispan\m@ne
   \ifnum\@multicnt=\@ne\@firstofone{&\omit}\fi
   \@multicnt#2%
   \advance\@multicnt-#1%
   \advance\@multispan\@ne
   \leaders\hrule\@height3\arrayrulewidth\hfill
   \cr
   \noalign{\vskip-3\arrayrulewidth}}
\makeatother

\begin{document}

\setlength{\doublerulesep}{.2pt}
\renewcommand{\arraystretch}{1.2}

\begin{tabular}{|c|c|||||c|c|c|c|c|||||} \hline
  \multicolumn{1}{|c}{} & \multicolumn{1}{c|}{$Y$}&
  \multicolumn{5}{c|}{数\hspace{3zw}学} \\ \cline{3-7}
  \multicolumn{1}{|c}{$X$} & \multicolumn{1}{c|}{}&
  \multicolumn{1}{c|}{1} & 2 & 3 & 4       &
  \multicolumn{1}{c|}{5} \\ \hline\Cline{3-7}
     &  5  & 1 & 3 & 1 & 0 & 1 \\ \cline{2-7}
 英  &  4  & 1 & 0 & 7 & 5 & 1 \\ \cline{2-7}
     &  3  & 2 & 1 & 0 & 9 & 3 \\ \cline{2-7}
 語  &  2  & 1 &$b$& 6 & 0 &$a$\\ \cline{2-7}
     &  1  & 0 & 0 & 1 & 1 & 3 \\ \hline\Cline{3-7}
\end{tabular}

\end{document}
