如题所述
#include <stdio.h>
int main()
{
int k,x,y;
scanf("%d",&k);
for(x=1;k-3*x>=1;++x)
printf("(%d,%d)",x,k-3*x);
}
return 0;