rt,调不出来。
快读是自己写的,本地能过样例但0pts。
#include<bits/stdc++.h>
using namespace std;
char *p,buf[1000001];
const char lst='?';
inline int read() {
int res=0;
bool fh=false;
(*p)=='-'&&(fh=true,(*++p)==lst&&(fread(buf,1,1000000,stdin),p=buf));
while('0'<=(*p)&&(*p)<='9')(res=res*10+(*p)-'0'),(*++p)==lst&&(fread(buf,1,1000000,stdin),p=buf);
(*++p)==lst&&(fread(buf,1,1000000,stdin),p=buf);
return fh?-res:res;
}
int main() {
buf[1000000]=lst;
fread(buf,1,1000000,stdin);
p=buf;
int n=read(),ans=0;
for(int i=1; i<=n; ++i)ans+=read();
printf("%d",ans);
return 0;
}