Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
你这个程序跑第二个测试数据就不对了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator