Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- /*
- * This is the basic template
- * You do not have to process the input
- * You just have to complete the given function below
- */
- int solution(vector<int>A){
- // write your code here
- }
- signed main(){
- int n;
- cin >> n;
- vector<int>A(n+1);
- for(int i = 1; i <= n; i++){
- cin >> A[i];
- }
- cout<<solution(A)<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement