1 solutions
-
0
C++ :
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a<=b&&b<=c) {cout<<a<<endl;return 0;} if(a<=c&&c<=b) {cout<<a<<endl;return 0;} if(c<=b&&b<=a) {cout<<c<<endl;return 0;} if(c<=a&&a<=b) {cout<<c<<endl;return 0;} if(b<=a&&a<=c) {cout<<b<<endl;return 0;} if(b<=c&&c<=a) cout<<b<<endl; }
- 1
Information
- ID
- 820
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 10
- Tags
- (None)
- # Submissions
- 8
- Accepted
- 5
- Uploaded By