Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define int long long
- using namespace std;
- signed main() {
- ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
- int t;
- cin >> t;
- while(t--){
- int a,b,c;
- cin >> a >> b >> c;
- cout << max(a, max(b, c)) - min(a, min(b, c)) << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement