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 |
直接BFS即可,状态很少如果不知道为什么要是用long long ,最好还是开个结构体吧,结构体中有两个元素,一个是string,存01序列,另一个int 用来存储余数,然后如果一个余数出现过,就把它标记上,之后再出现有该余数的序列就不用再入队了。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator