Tuesday, October 4, 2016

CF 723A

#include<bits/stdc++.h>

using namespace std;

int main()
{
 int x,xx,xxx;
 cin>>x>>xx>>xxx;
 
 int result = (max(x,max(xx,xxx))) -( min(x,min(xx,xxx)));
 
 cout<<result<<endl;
 
 return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)