合肥工业大学oj 1354 砝码称重

#include<iostream>
#include<cmath>
using namespace std;

int T;
int main(){
    cin >> T;
    while(T--) {
        int a, b, c, d; 
        cin >> a >> b >> c >> d;
        cout << abs(a * b - c * d) << endl;
    }
    
    return 0;
} 

//presented by 大吉大利,今晚AC

猜你喜欢

转载自blog.csdn.net/lalala_HFUT/article/details/88063719