Skip to main content
3 of 8
added 143 characters in body

#C 89,87 bytes

0-indexed

A,n,k;p(x,y){for(n=-~x+y*70,A=k=0;k<n;k+=++A*A);k-=n;printf("%d %d %d\n",A-1,k/A,k%A);}

1-indexed

A,n,k;p(x,y){for(n=x+~-y*70,A=k=1;k<n;k+=++A*A);k-=n-A;printf("%d %d %d\n",A,k/A,k%A+1);}