Goga21

Untitled

Jun 23rd, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | Source Code | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. #define int long long
  4.  
  5. using namespace std;
  6.  
  7. signed main() {
  8.     ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
  9.     int t;
  10.     cin >> t;
  11.     while(t--){
  12.         int a,b,c;
  13.         cin >> a >> b >> c;
  14.         cout << max(a, max(b, c)) - min(a, max(b, c)) << '\n';
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment