Advertisement
Goga21

Untitled

Jun 23rd, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 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, min(b, c)) << '\n';
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement