Friday, January 29, 2016

Algorithm - Simple array sum

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int main(){
    int n;
    cin >> n;
    vector<int> arr(n);
    for(int arr_i = 0;arr_i < n;arr_i++){
       cin >> arr[arr_i];
    }
    return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)