Here is the problem statement
http://www.spoj.com/problems/MYQ1/
This is yet another implementation task. SUppose we have the number N. Obviously the number of the row is N/5.(don't forget to subtrac 1 just as soon as you read it because of the conductor's place :) ). Then we need to check if the numeration on our found row is from left to right or vice versa. On the rows with odd index the numeration is from left to right and on the even ones from right ot left.
http://www.spoj.com/problems/MYQ1/
This is yet another implementation task. SUppose we have the number N. Obviously the number of the row is N/5.(don't forget to subtrac 1 just as soon as you read it because of the conductor's place :) ). Then we need to check if the numeration on our found row is from left to right or vice versa. On the rows with odd index the numeration is from left to right and on the even ones from right ot left.
No comments:
Post a Comment