题目链接:Little Boxes
/*
* [链接]:https://nanti.jisuanke.com/t/A1403
*
* [题意]:计算4个数字的和,long double 即可
*
* [分析]:
*
* [tricks]:
*
* [时间复杂度]:
*
* */
#include <bits/stdc++.h>
#define ll long long
using namespace std;
void scan() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
const int maxn = 1e6 + 7;
ll a[maxn], b[maxn];
int main() {
ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
scan();
int t;
cin >> t;
while (t--) {
long double a, b, c, d;
cin >> a >> b >> c >> d;
cout << fixed << setprecision(0) << (a + b + c + d) << endl;
}
return 0;
}