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

wa的要注意啦

Posted by JKGHuaning at 2009-01-22 22:12:54 on Problem 2192
/**
*经典的DP
*题意:首先输入一个N表示输入数据的个数
*然后输入三个字符串,题目要求我们判断
*通过前面两个字符串是否能组成第三个字符串
*其中第三个字符串的字符顺序和前面两个字符串的
*字符顺序一样的
*eg:
	①cat
	②tree
	③teraete
	判断③是否能由①,②组成
	组成的合法方式就是③的字符次序是按照①,②的
	字符次序eg:ertaete是不合法的。
	还有这我觉得北大的系统也太NB了我把输入数据改为
	scanf("%s %s %s",&strA[1],&strB[1],&strC[1]);
	就WA
	scanf("%s %s %s",&strA,&strB,&strC);
	就AC,但在杭电两种都可以啊!搞到我wa几次
**/

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