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 listSep 7, 2023 12:40A L ManningA L ManningScore: 49,790Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 9, 2023 12:3249,450469,726,965410,439,05602,236,416
2Sep 7, 2023 12:4049,507486,282,253410,907,28602,244,608
3Feb 9, 2023 12:3249,750483,814,153412,924,45002,240,512
4Sep 7, 2023 12:4049,790489,791,990413,257,01302,236,416
5Sep 7, 2023 12:4050,525495,340,636419,357,63802,240,512
6Feb 9, 2023 12:3250,527483,319,090419,377,72502,232,320