Problem 1004 为什么这样不对呢?

musashiheart | 2016-02-06 21:01:07Author
for(int i=0; i+1<n; i+=2) res += a[i]-a[i+1];