#include using namespace std; int main() { int n, sum = 0, t = 0; cin >> n; int a[n]; for(int i = 0; i < n; i++) cin >> a[i], sum += a[i]; int l = 0, r = 0, ret = 0; for(l; l < n; l++) { while(t < sum / 2) { t += a[r % n]; r ++; } if(t == s...