#include using namespace std; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //setbase - cout << setbase (16); cout << 100 << endl; Prints 64 //setfill - cout << setfill ('x') << setw (5); cout << 77 << endl; prints xxx77 //setprecision - cout << setprecision (4) << f << endl; Prints x.xxxx // INT_MIN Minimum value for a variable of type int. // INT_MAX Maximum value for a variable of type int. // UINT_MAX Maximum value for a variable of type unsigned int. // LONG_MIN Minimum value for a variable of type long. // LONG_MAX Maximum value for a variable of type long. // ULONG_MAX Maximum value for a variable of type unsigned long. #define MOD 1000000007 int gcd(int n1, int n2) { if (n2 != 0) return gcd(n2, n1%n2); else return n1; } int main(void) { int j,i,n,cnt=0,ma=0; cin>>n;int a[n]; for(i=0;i>a[i]; sort(a,a+n); //for(i=0;i