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 listOct 9, 2023 01:35sliceteamsliceteamScore: 10,314Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 01:359,317143,659,60377,333,93602,269,184
2Oct 9, 2023 01:359,386142,715,11277,901,85702,269,184
3Oct 9, 2023 01:359,418132,781,99378,172,24602,269,184
4Oct 9, 2023 01:3510,298112,805,87884,469,0001,005,0002,260,992
5Oct 9, 2023 01:3510,309113,429,29984,559,0001,006,0002,260,992
6Oct 9, 2023 01:3510,311115,447,96884,574,0001,006,0002,260,992
7Oct 9, 2023 01:3510,314111,440,31584,598,0001,007,0002,387,968
8Oct 9, 2023 01:3510,314110,245,92684,598,0001,007,0002,260,992
9Oct 9, 2023 01:3510,315115,880,44484,605,0001,007,0002,260,992
10Oct 9, 2023 01:3510,316117,119,98285,626,00002,260,992
11Oct 9, 2023 01:3510,317117,167,15584,623,0001,007,0002,387,968
12Oct 9, 2023 01:3510,317116,949,34685,632,00002,265,088
13Oct 9, 2023 01:3511,831123,324,61896,194,0002,004,0002,519,040
14Oct 9, 2023 01:3511,835122,242,14897,228,0001,002,0002,256,896
15Oct 9, 2023 01:3511,845124,430,51297,307,0001,003,0002,383,872