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 listMay 27, 2024 13:54GraceGraceScore: 6,296Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:545,87975,575,73447,802,000995,0002,285,568
2May 27, 2024 13:545,98779,723,85548,679,0001,014,0002,285,568
3May 27, 2024 13:546,00278,342,93347,821,0001,992,0002,285,568
4May 27, 2024 13:546,01375,158,74647,913,0001,996,0002,265,088
5May 27, 2024 13:546,02875,351,66548,029,0002,001,0002,273,280
6May 27, 2024 13:546,10176,323,44649,628,0001,012,0002,285,568
7May 27, 2024 13:546,14977,407,55449,033,0002,001,0002,285,568
8May 27, 2024 13:546,16770,205,75049,183,0002,007,0002,531,328
9May 27, 2024 13:546,27574,596,38050,081,0002,003,0002,285,568
10May 27, 2024 13:546,29677,351,37950,246,0002,009,0002,285,568
11May 27, 2024 13:546,36379,002,46850,819,0001,992,0002,285,568
12May 27, 2024 13:546,36384,511,85152,812,00002,285,568
13May 27, 2024 13:536,951117,291,75757,696,81002,289,664
14May 27, 2024 13:546,957130,727,54257,739,83302,293,760
15May 27, 2024 13:546,987132,262,18757,994,09602,293,760
16May 27, 2024 13:547,011124,325,43058,187,71202,301,952
17May 27, 2024 13:537,022134,129,84458,279,67802,285,568
18May 27, 2024 13:537,069133,267,73858,675,01402,289,664