|
|
вернуться в форумSimple Solution in C++ $ Please make sure that you have tried enough and than see solution for gathering concept. $ Code:- #include<iostream> #include<algorithm> using namespace std; int main() { int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a, a+3); cout << min((a[0]-a[1]-a[2]), (a[0]-a[1]*a[2])) << endl; } Re: Simple Solution in C++ Послано Daibri 3 май 2022 04:57 It IS already sorted. XD |
|
|