120

On Jan 17, 5:59 am, Umer Farooq <the.um...@gmail.com> wrote:
> 0
>
> On 1/16/12, Ravi Ranjan <ravi.cool2...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > An ant moves on a regular grid of squares that are coloured either black or
> > white.
> > The ant is always oriented in one of the cardinal directions (left, right,
> > up or down) and moves from square to adjacent square according to the
> > following rules:
> > - if it is on a black square, it flips the color of the square to white,
> > rotates 90 degrees counterclockwise and moves forward one square.
> > - if it is on a white square, it flips the color of the square to black,
> > rotates 90 degrees clockwise and moves forward one square.
>
> > Starting with a grid that is entirely white, how many squares are black
> > after 1018 moves of the ant?
>
> > source
>
> >http://projecteuler.net/problem=349
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
> --
> Umer

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to