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 |
Re:这个题目有歧义。。。在网上找了个答案。可以a的。但是。。。把。10行的样例模拟进去。则下面答案是不满足In Reply To:这个题目有歧义。。。在网上找了个答案。可以a的。但是。。。把。10行的样例模拟进去。则下面答案是不满足 Posted by:274856653 at 2021-05-12 15:34:36 All remaining segments on a centipede detach from the segment involved in the collision and continue their march until another collision occurs or an existing collision site is encountered or until the segments fall off the edge of the board. Anytime a segment enters a collision site, it becomes part of the collision. 上面的解法是。发生碰撞。两条蜈蚣将不会移动了。。。 和这个样例的结构不一样。。。。尝试自己去改写一下。确runtime error了。算了不折腾了。。。 9 . . . . . . . . . . 9 . . . . . . . . . . 8 . . . . . . . . . . 8 . . . . . . . . . . 7 1 1 1 1 1 . . . . . 7 . . . . . X . . . X 6 . 0 . . . . . . . . 6 . . . . . . . . . . 5 . 0 . . . . . . . 3 5 . . . . . . . . . . 4 . 0 . . . 2 . . . 3 4 . . . . . . . . . . 3 . 0 . . . 2 . . . 3 3 . . . . . . . . . . 2 . . . . . 2 . . . 3 2 . . . . . . . . . . 1 . . . . . 2 . . . 3 1 . . . . . . . . . . 0 . . . . . 2 4 4 4 3 0 . X . . . . . . . . Y Y / X 0 1 2 3 4 5 6 7 8 9 / X 0 1 2 3 4 5 6 7 8 9 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator