明显这种普通的快读是过不去的,建议 bdfs
by Manipula @ 2024-08-04 21:15:56
快读板子打错了吧这 @[Luliuyan114514](/user/1345652)
by char_cha_ch_ @ 2024-08-04 21:27:02
@[Luliuyan114514](/user/1345652)
```cpp
#include <cstdio>
using namespace std;
typedef long long ll;
inline ll read() {
ll ans = 0, sign = 1;
char c = getchar_unlocked();
while (c > '9' || c < '0') {
if (c == '-') {
sign = -1;
}
c = getchar_unlocked();
}
while (c >= '0' && c <= '9') {
ans = (ans << 3) + (ans << 1) + c - '0';
c = getchar_unlocked();
}
return ans * sign;
}
int main() {
ll n = read(), sum = 0;
for (ll i = 1; i <= n; i++) {
sum += read();
}
printf("%lld\n", sum);
return 0;
}
```
by char_cha_ch_ @ 2024-08-04 21:27:40