#include <cstdio>
int main(int argc, char *argv[]) {
int t;
scanf("%d", &t);
while(t--) {
int x1, y1, x2, y2;
int x3, y3;
scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
x3 = x1 + 2 * (x2 - x1);
y3 = y1 + 2 * (y2 - y1);
printf("%d %d\n", x3, y3);
}
return 0;
}
Arpit's Newsletter read by 15000+ engineers
🔥 Thrice a week, in your inbox, an essay about system design, distributed systems, microservices, programming languages internals, or a deep dive on some super-clever algorithm, or just a few tips on building highly scalable distributed systems.