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 6, 2022 18:03Bernard TeoBernard TeoScore: 7,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 18:037,06189,341,90257,598,0001,010,0002,273,280
2Sep 6, 2022 18:037,06284,271,65957,621,000993,0002,273,280
3Sep 6, 2022 18:037,06481,111,77357,642,000993,0002,387,968
4Sep 6, 2022 18:037,06783,345,87457,643,0001,011,0002,510,848
5Sep 6, 2022 18:037,07085,683,30358,679,00002,273,280
6Sep 6, 2022 18:037,07285,061,03658,694,00002,514,944
7Sep 6, 2022 18:037,07387,495,25758,702,00002,273,280
8Sep 6, 2022 18:037,08786,617,99056,832,0001,994,0002,404,352
9Sep 6, 2022 18:037,11582,310,62657,050,0002,001,0002,273,280
10Sep 6, 2022 18:038,325131,342,20369,096,57002,281,472
11Sep 6, 2022 18:038,336138,752,54269,189,97202,281,472
12Sep 6, 2022 18:038,345121,932,10269,266,95602,277,376
13Sep 6, 2022 18:038,49296,199,22369,474,0001,006,0002,273,280
14Sep 6, 2022 18:038,51799,778,46770,692,00002,404,352
15Sep 6, 2022 18:038,53096,835,79069,801,000997,0002,396,160