Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJun 6, 2024 12:41matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 12:4400000Error: expected "53687472029114709 ", got "82592882480604182"stderr
2Jun 6, 2024 12:4139,884393,403,831331,038,79202,236,416
3Jun 6, 2024 12:4439,907396,888,150331,228,43002,236,416
4Jun 6, 2024 12:4439,931397,322,108331,431,09002,240,512
5Jun 6, 2024 12:4439,933405,924,810331,445,55002,232,320
6Jun 6, 2024 12:4139,934394,233,422331,453,40702,232,320
7Jun 6, 2024 12:4140,833421,681,837338,913,65502,236,416