fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long int
  4. #define ld long double
  5. #define MAX 10000000
  6. int main()
  7. {
  8. ll n;
  9. cin>>n;
  10. ll i,j;
  11. vector<ll> v;
  12. v.push_back(1);
  13. v.push_back(2);
  14. v.push_back(3);
  15. sort(v.rbegin(),v.rend());
  16. for(i=0;i<v.size();i++)
  17. cout<<v[i]<<endl;
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0s 15240KB
stdin
3
10 10
3 5
5 8
3
3 4 10
stdout
3
2
1