请问下面这题应该如何编程,哪位高手能告诉我具体的代码

[img]http://www.labfans.com/attachment.php?attachmentid=39&stc=1&d=1195979808[/img]