#include #include #include using namespace std; int main(){ ios::sync_with_stdio(false); int n, input, d, min=10000000; int x[100000]; int bDiffer=0; cin >> n; for(int i=0; i<100000; ++i) x[i]=min; for(int i=0; i> input; x[i]=input; cout << "input :" << input << "\tnow :" << i << "\n"; } cout << "input complete.\n"; cout << "sort complete.\n"; for(int i=0; id){ min=d; bDiffer=1; } } } cout << min*bDiffer << "\n"; return 0; }