#include<bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin>>a>>b>>c; if(a>c) { d=a; a=c; c=d; } if(a>b) { d=a; a=b; b=d; } if(b>c) { d=b; b=c; c=d; } cout<<"The maximum number is : "<<c<<endl<<"The minimum number is : "<<a; return 0; }
排序(就是三个if)顺序不同居然有影响
?