Từ Trường Phổ thông Năng khiếu - Đại học Quốc gia TP.HCM, Trường Đại học FPT
Thông tin
#include <bits/stdc++.h>
using namespace std;
#define IN ""
#define ON ""
const int N = 1e5 + 3;
long long a[N], p[N];
unordered_map<long long, bool> f;
unordered_map<long long, long long> mnp;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
if(fopen(IN ".INP", "r")){
freopen(IN ".INP", "r", stdin);
freopen(ON ".OUT", "w", stdout);
}
int n; cin >> n;
for(int i = 1; i <= n; i++){
cin >> a[i];
p[i] = a[i] + p[i - 1];
}
;
return 0;
}