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 14, 2022 22:46Robert BurkeRobert BurkeScore: 9,163Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2022 22:469,083135,171,61875,390,51302,174,976
2Jul 14, 2022 22:469,095157,580,47575,487,84402,297,856
3Jul 14, 2022 22:469,095141,261,36475,487,49402,179,072
4Jul 14, 2022 22:469,151100,424,39774,955,000999,0002,428,928
5Jul 14, 2022 22:469,15396,169,80974,971,000999,0002,433,024
6Jul 14, 2022 22:469,16197,093,37575,038,0001,000,0002,420,736
7Jul 14, 2022 22:469,163103,412,06075,054,0001,000,0002,433,024
8Jul 14, 2022 22:469,16397,105,03174,049,0002,001,0002,269,184
9Jul 14, 2022 22:469,168103,369,45074,094,0002,002,0002,531,328
10Jul 14, 2022 22:469,17195,567,85175,122,0001,001,0002,424,832
11Jul 14, 2022 22:469,17498,696,93875,141,0001,001,0002,531,328
12Jul 14, 2022 22:469,174105,481,57475,145,0001,001,0002,527,232
13Jul 14, 2022 22:469,177102,442,67775,171,0001,002,0002,269,184
14Jul 14, 2022 22:469,18298,062,04275,212,0001,002,0002,527,232
15Jul 14, 2022 22:469,199103,213,97075,348,0001,004,0002,269,184