DWITE, November 2011, Problem 1
Once upon a time, Little Billy romped about, passing by candy stores. However, that candy store has since shut down, and he has been deprived of the very essence of his life. In light of this existential crisis, his walks have never been quite the same. Today, he is aimlessly walking from his home
Billy's concerned parents would like to know where Billy is after
The input will contain 5 test cases, each consisting of one line, containing the number of steps
Your output should contain 5 lines with two space-separated integers each, representing Billy's coordinates after
Sample Input
0
1
2
3
4
Sample Output
0 0
1 0
1 -1
1 -2
2 -2
Problem Resource: DWITE
Comments