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 listJul 16, 2023 11:36Lopez BenjaminLopez BenjaminScore: 157,520Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 11:36156,8761,361,090,3331,302,072,14502,240,512
2Jul 16, 2023 11:36157,1811,357,585,7661,304,604,63102,232,320
3Jul 16, 2023 11:36157,2521,369,928,6151,305,188,31302,236,416
4Jul 16, 2023 11:36157,5201,389,292,1741,307,416,21602,244,608
5Jul 16, 2023 11:36157,7111,373,350,1841,309,004,41302,244,608
6Jul 16, 2023 11:36157,7521,375,453,8881,309,339,58802,256,896