\documentclass[12pt,a4paper]{article}
\usepackage{ctex}
\usepackage{amsmath,amscd,amsbsy,amssymb,latexsym,url,bm,amsthm}

\usepackage[lined,boxed,commentsnumbered,linesnumbered,ruled]{algorithm2e}

\usepackage{epsfig,graphicx,subfigure}
\usepackage{enumitem,balance,mathtools}
\usepackage{wrapfig}
\usepackage{mathrsfs, euscript}
\usepackage[usenames]{xcolor}
\usepackage{hyperref}
\usepackage{epstopdf}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{exercise}{Exercise}[section]
\newtheorem*{solution}{Solution}

\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\newcommand{\postscript}[2]
 {\setlength{\epsfxsize}{#2\hsize}
  \centerline{\epsfbox{#1}}}

\renewcommand{\baselinestretch}{1.0}

\setlength{\oddsidemargin}{-0.365in}
\setlength{\evensidemargin}{-0.365in}
\setlength{\topmargin}{-0.3in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\textheight}{10.1in}
\setlength{\textwidth}{7in}
\makeatletter \renewenvironment{proof}[1][Proof] {\par\pushQED{\qed}\normalfont\topsep6\p@\@plus6\p@\relax\trivlist\item[\hskip\labelsep\bfseries#1\@addpunct{.}]\ignorespaces}{\popQED\endtrivlist\@endpefalse} \makeatother
\makeatletter
\renewenvironment{solution}[1][Solution] {\par\pushQED{\qed}\normalfont\topsep6\p@\@plus6\p@\relax\trivlist\item[\hskip\labelsep\bfseries#1\@addpunct{.}]\ignorespaces}{\popQED\endtrivlist\@endpefalse} \makeatother

\begin{document}
\noindent

%========================================================================
\noindent\framebox[\linewidth]{\shortstack[c]{
\Large{\textbf{Lab02-Pseudo Code}}\vspace{1mm}\\
�������ѧ���ۿκ�ϰ�⣬��ʦ�������h��2016 �＾ѧ��}}
\begin{center}
\footnotesize{\color{red}��ע����\quad ������\_\_\_\_\_\_\_\_\_\_\_\_ \quad ѧ�ţ�\_\_\_\_\_\_\_\_\_\_\_ \quad �༶��\_\_\_\_\_\_}

\footnotesize{\color{blue}$*$ ���Ӱ���ҵ��ֱ���ϴ����γ���վ}
\end{center}

\begin{enumerate}
\item ��������ͼ��Fig.~\ref{fig:Flow}��ʾ����д����ͼ��Ӧ��α���롣

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.25\textwidth]{Fig-Flow.pdf}
  \caption{��һ������ͼ}\label{fig:Flow}
\end{figure}

\item ����α������Alg.~\ref{Alg:Check}��ʾ����ָ���öδ����ʾ�����塣

\begin{minipage}[t]{0.78\textwidth}
\begin{algorithm}[H]
\caption{α����}\label{Alg:Check}
\KwIn{$x_1,x_2,\cdots,x_{10}$}
\KwOut{$n$}
\BlankLine

$n\leftarrow 0$\;
\For{$i=0$ to $10$}{
    \If{$x_i \leq 0$}{
        $n\leftarrow n+1$\;
    }
}
\textbf{output} $n$\;
\end{algorithm}
\end{minipage}



\item ������㷨������⣺``�������������������������������С������''���������˼·��д��α���롣

\end{enumerate}
%========================================================================
\end{document}
