Play reasoning with Wu Hao Round 2-ant Crawler

Source: Internet
Author: User

Problem:There is a 27 cm-long fine wooden pole. There is an ant in each of the five positions on the fifth, 3 cm, 7 cm, 11 cm, 17 cm, and 23 cm. The wooden pole is very fine, you cannot use two ants at the same time. At the beginning, the head of the ant is arbitrary to the left or right. They only move forward or turn around, but do not move back. When the two ants meet each other, at the same time, the ant will turn around and go in the opposite direction, assuming that the ant can walk 1 cm away every second. Find the minimum and maximum time for all ants to leave the wooden pole.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.