Time Limit: 1000MS | Memory Limit: 30000K | |
Total Submissions: 17694 | Accepted: 7520 |
Description
An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the pole, it immediatelly falls off it. When two ants meet they turn back and start walking in opposite directions