推导一下了事~
(不就好了吗……)
手动一下,不懂的话自己推一推!
#include <bits/stdc++.h>
using namespace std;
int main() {
int s1, t1, s2, t2, s3, t3, s4, t4;
cin >>s1>>t1>>s2>>t2>>s3>>t3>>s4>>t4;
int a = t4 - s4;
int b = t3 - s3 + a;
int c = t2 - s2 + b;
printf("%d\n%d\n%d", c, b, a);
return 0;
}