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 listNov 8, 2023 10:46Robert BurkeRobert BurkeScore: 7,785Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:467,71285,357,32762,013,0002,000,0002,428,928
2Nov 8, 2023 10:467,72885,801,83063,137,0001,002,0002,277,376
3Nov 8, 2023 10:467,75087,818,19162,316,0002,010,0002,424,832
4Nov 8, 2023 10:467,77084,302,66364,489,00002,424,832
5Nov 8, 2023 10:467,78093,148,40163,566,0001,008,0002,277,376
6Nov 8, 2023 10:467,78191,170,61564,586,00002,433,024
7Nov 8, 2023 10:467,78399,266,61764,598,00002,424,832
8Nov 8, 2023 10:467,78586,863,48663,607,0001,009,0002,277,376
9Nov 8, 2023 10:467,78988,844,14264,651,00002,277,376
10Nov 8, 2023 10:467,80790,528,94062,802,0001,993,0002,277,376
11Nov 8, 2023 10:467,80796,603,28863,805,000996,0002,539,520
12Nov 8, 2023 10:467,81191,830,40463,836,000997,0002,539,520
13Nov 8, 2023 10:467,845118,261,78565,112,98202,297,856
14Nov 8, 2023 10:467,866123,166,97165,288,24402,293,760
15Nov 8, 2023 10:467,880119,178,06965,404,91302,174,976