Run ID:98457

提交时间:2024-11-22 19:00:41

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if (a>=b && b>=c || a>=c && c<=b){ cout<<c; } else if (a<=b && a<=c || b>=a && b>=a){ cout<<a; } else{ cout<<b; } return 0; }