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

Re:想到个简单的方法不知道是不是火星了(好吧,算剧透了,做完的看看哈)

Posted by kensou97 at 2013-05-21 15:28:18 on Problem 1013
In Reply To:想到个简单的方法不知道是不是火星了(好吧,算剧透了,做完的看看哈) Posted by:LaPartida at 2013-02-22 18:37:18
> 难得自己想到一个算法的,感觉一遍得出,不代入检验,也不用考虑漏情况。(是不是这个比赛的时候很多情况下都是自己当场想的?)
> 1even的情况所有参与的字母标记0
> 2up的情况左边非0的字母标记2,右边非0的字母标记1,未参与的子母标0,发生1变为2或者2变为1的情况均直接变为0
> 3down的情况可以对称2
> 最后提醒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