ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1079. Maximum

Step to solve this
Posted by rayhan28 26 Jul 2020 04:49
1.declare an array.size 1000000
2.genarate all number according the problem description.
3.input the value n.
4.declare a container and take the value of the array .vector<int>v(a,a+n);
5.sort the container.
5.at last print v[n];

Edited by author 26.07.2020 04:57

Edited by author 26.07.2020 04:58