最后一个点WA,求调
#include<bits/stdc++.h>
using namespace std;
#define ll long long
inline bool isdight(const char &c){return c>='0'&&c<='9';}
inline void read(ll &n){
register short f=1;n=0;
register char c=getchar_unlocked();
while(!isdight(c)) f=-1,c=getchar_unlocked();
while(isdight(c)) n=(n<<1)+(n<<3)+(c-'0'),c=getchar_unlocked();
n*=f;return;
}
inline void write(ll n){
if(!n) return;
if(n<0) putchar_unlocked('-'),n=-n;
write(n/10);
putchar_unlocked(n%10+'0');
return;
}
int main(){
register ll n,ans=0,k;read(n);
while(n--){read(k);ans+=k;}
if(ans) write(ans);
else putchar_unlocked('0');
return 0;
}