ABC108B - Ruined Square
#include <iostream> using namespace std; int main(void) { int x1, x2, y1, y2, a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> x1 >> x2 >> y1 >> y2; a = y1 - x1; b = y2 - x2; cout << y1 - b << " " << y2 + a << " " << x1 - b << " " << x2 + a << "\n"; return 0; }