fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y,z=0,w=0;
  5. for(;~scanf("%d%d",&x,&y);z^=x)w^=y;
  6. printf("%d,%d",z,w);
  7. return 0;
  8. }
Success #stdin #stdout 0s 2012KB
stdin
10 30
45 30
10 65
stdout
45,65