📄 problem - 2013.mht
字号:
From: "Saved by Windows Internet Explorer 7"
Subject: Problem - 2013
Date: Mon, 24 Nov 2008 23:02:01 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0026_01C94E88.A8D526F0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
This is a multi-part message in MIME format.
------=_NextPart_000_0026_01C94E88.A8D526F0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://acm.hdu.edu.cn/showproblem.php?pid=2013
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Problem - 2013</TITLE>
<META content=3D"HDOJ ACM ICPC OJ C C++ Pascal Java" name=3Dkeywords>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3Dgb2312><LINK media=3Dall=20
href=3D"http://acm.hdu.edu.cn/images/global.css" type=3Dtext/css=20
rel=3Dstylesheet><LINK media=3Dall =
href=3D"http://acm.hdu.edu.cn/css/diyinhead.css"=20
type=3Dtext/css rel=3Dstylesheet>
<SCRIPT src=3D"http://acm.hdu.edu.cn/js/global.js" =
type=3Dtext/javascript></SCRIPT>
<META content=3D"MSHTML 6.00.6001.18148" name=3DGENERATOR></HEAD>
<BODY><A name=3Dtop></A>
<TABLE style=3D"WORD-WRAP: break-word" cellSpacing=3D0 cellPadding=3D0 =
width=3D980=20
align=3Dcenter border=3D0>
<TBODY>
<TR>
<TD=20
style=3D"BORDER-RIGHT: #1a5cc8 1px solid; BORDER-TOP: #1a5cc8 1px =
solid; BORDER-LEFT: #1a5cc8 1px solid; BORDER-BOTTOM: #1a5cc8 1px solid" =
align=3Dmiddle width=3D"100%"><A =
href=3D"http://acm.hdu.edu.cn/"><IMG height=3D116=20
src=3D"http://acm.hdu.edu.cn/images/banner.jpg" width=3D"100%"=20
border=3D0></A></TD></TR>
<TR>
<TD=20
style=3D"BORDER-RIGHT: #1a5cc8 1px solid; BORDER-TOP: #1a5cc8 1px =
solid; BORDER-LEFT: #1a5cc8 1px solid; BORDER-BOTTOM: #1a5cc8 1px =
solid">
<TABLE cellSpacing=3D0 cellPadding=3D1 width=3D"100%">
<TBODY>
<TR class=3Dbanner align=3Dmiddle bgColor=3D#1a5cc8 height=3D25>
<TD>Online Judge</TD>
<TD>Problem Set</TD>
<TD>Authors</TD>
<TD>Online Contests</TD>
<TD>Exercise Author</TD></TR>
<TR style=3D"FONT-SIZE: 16px" align=3Dmiddle>
<TD vAlign=3Dtop width=3D"20%"><A =
href=3D"http://acm.hdu.edu.cn/">Home=20
Page</A><BR><A=20
=
href=3D"http://acm.hdu.edu.cn/notification.php">Notification</A><BR><A=20
href=3D"http://acm.hdu.edu.cn/faq.php">F.A.Q</A><BR><A=20
href=3D"http://acm.hdu.edu.cn/forum">Forum</A><BR><A=20
href=3D"http://acm.hdu.edu.cn/admin">Administration</A> =
</TD>
<TD vAlign=3Dtop width=3D"20%">
<FORM action=3D/search.php method=3Dget><A=20
=
href=3D"http://acm.hdu.edu.cn/listproblem.php?vol=3D1">Problem=20
Archive</A><BR><A =
href=3D"http://acm.hdu.edu.cn/submit.php">Submit=20
Solution</A><BR><A =
href=3D"http://acm.hdu.edu.cn/status.php">Realtime=20
Judge Status</A><BR><INPUT type=3Dhidden value=3Dproblem=20
name=3Dfield><INPUT class=3Dtext60 name=3Dkey> <INPUT =
class=3Dbutton40 type=3Dsubmit value=3DSearch>=20
</FORM></TD>
<TD vAlign=3Dtop width=3D"20%">
<FORM action=3D/search.php method=3Dget><A=20
href=3D"http://acm.hdu.edu.cn/register.php">Register New=20
Author</A><BR><A =
href=3D"http://acm.hdu.edu.cn/modifyuser.php">Update=20
Your Information</A><BR><A=20
href=3D"http://acm.hdu.edu.cn/ranklist.php">Authors=20
Ranklist</A><BR><INPUT type=3Dhidden value=3Dauthor =
name=3Dfield><INPUT=20
class=3Dtext60 name=3Dkey> <INPUT class=3Dbutton40 =
type=3Dsubmit value=3DSearch>=20
</FORM></TD>
<TD vAlign=3Dtop width=3D"20%"><A=20
=
href=3D"http://acm.hdu.edu.cn/contests/contest_show.php?cid=3D161"=20
?>Next Contest Time<BR><SPAN=20
style=3D"FONT-SIZE: 14px; COLOR: red">2008-11-25 17:30:00=20
(GMT+8)</SPAN></A><BR><A=20
=
href=3D"http://acm.hdu.edu.cn/contests/contest_list.php?type=3Dscheduled"=
>Scheduled=20
Contests</A><BR><A=20
=
href=3D"http://acm.hdu.edu.cn/contests/contest_list.php?type=3Dpassed">Pa=
ssed=20
Contests</A><BR><A style=3D"COLOR: red"=20
href=3D"http://acm.hdu.edu.cn/diy/contest_list.php">DIY =
Contests !</A>=20
</TD>
<TD width=3D"20%">
<DIV style=3D"FONT-SIZE: 16px; WIDTH: 150px" align=3Dleft><A =
=
href=3D"http://acm.hdu.edu.cn/userstatus.php?user=3Djimdavis"><IMG=20
height=3D18 alt=3DAuthor =
src=3D"http://acm.hdu.edu.cn/images/user.png"=20
width=3D18 border=3D0> monster_chen</A><BR><B=20
style=3D"FONT-SIZE: 16px; FONT-FAMILY: Arial"><A=20
href=3D"http://acm.hdu.edu.cn/listmsg.php"><IMG height=3D18 =
alt=3DMail=20
src=3D"http://acm.hdu.edu.cn/images/mail.png" width=3D18 =
border=3D0> Mail=20
0</A><A =
href=3D"http://acm.hdu.edu.cn/listmsg.php?type=3Dnew">(<FONT=20
color=3Dred>0</FONT>)</A></B><BR><A=20
href=3D"http://acm.hdu.edu.cn/sendmsg.php"><IMG height=3D18=20
alt=3D"Write New Mail"=20
src=3D"http://acm.hdu.edu.cn/images/writemail.png" =
width=3D18 border=3D0>=20
Write New Mail</A><BR><A=20
=
href=3D"http://acm.hdu.edu.cn/userloginex.php?action=3Dlogout"><IMG=20
height=3D18 alt=3D"Sign Out"=20
src=3D"http://acm.hdu.edu.cn/images/signout.png" width=3D18 =
border=3D0>=20
Sign Out</A></DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=3Dmiddle><BR>
<H1 style=3D"COLOR: #1a5cc8">=F3=B4=CC=D2=BC=C7</H1><FONT =
size=3D+0><B><SPAN=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: green; =
FONT-FAMILY: Arial">Time=20
Limit: 2000/1000 MS (Java/Others) Memory =
Limit:=20
65536/32768 K (Java/Others)<BR>Total Submission(s):=20
4877 Accepted Submission(s):=20
3892<BR></SPAN></B></FONT><BR><BR>
<DIV class=3Dpanel_title align=3Dleft>Problem Description</DIV>
<DIV=20
=
class=3Dpanel_content>=CF=B2=BB=B6=CE=F7=D3=CE=BC=C7=B5=C4=CD=AC=D1=A7=BF=
=CF=B6=A8=B6=BC=D6=AA=B5=C0=CE=F2=BF=D5=CD=B5=B3=D4=F3=B4=CC=D2=B5=C4=B9=CA=
=CA=C2=A3=AC=C4=E3=C3=C7=D2=BB=B6=A8=B6=BC=BE=F5=B5=C3=D5=E2=BA=EF=D7=D3=CC=
=AB=C4=D6=CC=DA=C1=CB=A3=AC=C6=E4=CA=B5=C4=E3=C3=C7=CA=C7=D3=D0=CB=F9=B2=BB=
=D6=AA=A3=BA=CE=F2=BF=D5=CA=C7=D4=DA=D1=D0=BE=BF=D2=BB=B8=F6=CA=FD=D1=A7=CE=
=CA=CC=E2=A3=A1<BR>=CA=B2=C3=B4=CE=CA=CC=E2=A3=BF=CB=FB=D1=D0=BE=BF=B5=C4=
=CE=CA=CC=E2=CA=C7=F3=B4=CC=D2=D2=BB=B9=B2=D3=D0=B6=E0=C9=D9=B8=F6=A3=A1<=
BR>=B2=BB=B9=FD=A3=AC=B5=BD=D7=EE=BA=F3=A3=AC=CB=FB=BB=B9=CA=C7=C3=BB=C4=DC=
=BD=E2=BE=F6=D5=E2=B8=F6=C4=D1=CC=E2=A3=AC=BA=C7=BA=C7^-^<BR>=B5=B1=CA=B1=
=B5=C4=C7=E9=BF=F6=CA=C7=D5=E2=D1=F9=B5=C4=A3=BA<BR>=B5=DA=D2=BB=CC=EC=CE=
=F2=BF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>Output</DIV>
<DIV =
class=3Dpanel_content>=B6=D4=D3=DA=C3=BF=D7=E9=CA=E4=C8=EB=CA=FD=BE=DD=A3=
=AC=CA=E4=B3=F6=B5=DA=D2=BB=CC=EC=BF=AA=CA=BC=B3=D4=B5=C4=CA=B1=BA=F2=CC=D2=
=D7=D3=B5=C4=D7=DC=CA=FD=A3=AC=C3=BF=B8=F6=B2=E2=CA=D4=CA=B5=C0=FD=D5=BC=D2=
=BB=D0=D0=A1=A3</DIV>
<DIV class=3Dpanel_bottom> </DIV><BR>
<DIV class=3Dpanel_title align=3Dleft>Sample Input</DIV>
<DIV class=3Dpanel_content><PRE>2
4</PRE></DIV>
<DIV class=3Dpanel_bottom> </DIV><BR>
<DIV class=3Dpanel_title align=3Dleft>Sample Output</DIV>
<DIV class=3Dpanel_content><PRE>4
22</PRE></DIV>
<DIV class=3Dpanel_bottom> </DIV><BR>
<DIV class=3Dpanel_title align=3Dleft>Author</DIV>
<DIV class=3Dpanel_content>lcy</DIV>
<DIV class=3Dpanel_bottom> </DIV><BR>
<DIV class=3Dpanel_title align=3Dleft>Source</DIV>
<DIV =
class=3Dpanel_content>C=D3=EF=D1=D4=B3=CC=D0=F2=C9=E8=BC=C6=C1=B7=CF=B0=A3=
=A8=B6=FE=A3=A9</DIV>
<DIV class=3Dpanel_bottom> </DIV><BR>
<DIV class=3Dpanel_title align=3Dleft>Recommend</DIV>
<DIV class=3Dpanel_content>JGShining</DIV>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -