Untitled

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
270 B
6
Indexable
Never
#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
    int arr[3];
    cin >> arr[0] >> arr[1] >> arr[2];
    sort(arr, arr + 3);
    int result = (arr[2] - arr[1]) * 10 + (arr[1] - arr[0]) * 10;
    cout << result << endl;
    
    return 0;
}