1. Loot Houses #
Created Saturday 18 July 2020
// main code
#include <iostream>
#include "solution.h"
using namespace std;
int main(){
int n;
cin >> n;
int arr[10000];
for(int i=0; i<n; i++){
cin >> arr[i];
}
cout << getMaxMoney(arr, n);
}
#your code
int getMaxMoney(int arr[], int n){
/*Write your code here.
*Don’t write main().
*Don’t take input, it is passed as function argument.
*Don’t print output.
*Taking input and printing output is handled automatically.
*/
}