题解:CF2094B Bobritto Bandito
GoldenSTEVE7 · · 题解
题目大意
在一个小镇上,在一条无穷数线上有无数栋房子,房子的位置是
你知道在
思路
首先一定要清楚,瘟疫是从
那我们先假定
但是要注意一点,
代码
#include<bits/stdc++.h>
using namespace std;
int main() {
int T; cin >> T;
while(T--) {
int a, b, c, d; cin >> a >> b >> c >> d;
int y = d-a+b-c, x = 0;
while(y > d) x--, y--;
cout << x << " " << y << "\n";
}
return 0;
}