Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

你这个程序跑第二个测试数据就不对了

Posted by zhb_msqx at 2007-08-23 12:35:49 on Problem 2192
In Reply To:这样为什么wa啊?!!!!!!!!!!!!! Posted by:inforyou at 2007-05-16 19:19:32
cat tree catrtee
你的程序直接就把第一个t分给了cat 而后面的rtee是不等于tree的,所以你肯定返回的是no,然而如果把第二个t分给cat,结果是yes,答案也是yes,所以要用dp做,否则还要超时。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator