Advertisement
Guest User

mountainarray

a guest
Mar 19th, 2021
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. /*
  6.  * This is the basic template
  7.  * You do not have to process the input
  8.  * You just have to complete the given function below
  9.  */
  10.  
  11.  
  12.  
  13. int solution(vector<int>A){
  14.      // write your code here
  15. }
  16.  
  17.  
  18.  
  19. signed main(){
  20.             int n;
  21.             cin >> n;
  22.             vector<int>A(n+1);
  23.             for(int i = 1; i <= n; i++){
  24.                     cin >> A[i];
  25.             }
  26.             cout<<solution(A)<<endl;
  27.            
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement