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 25, 2023 19:17Robert BurkeRobert BurkeScore: 7,449Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2023 19:177,39981,076,57061,413,00002,433,024
2Nov 25, 2023 19:177,40284,972,73760,430,0001,007,0002,277,376
3Nov 25, 2023 19:177,41991,035,15561,577,00002,539,520
4Nov 25, 2023 19:177,42688,225,30761,637,00002,277,376
5Nov 25, 2023 19:177,43087,149,00561,669,00002,277,376
6Nov 25, 2023 19:177,44587,811,72460,798,000996,0002,277,376
7Nov 25, 2023 19:177,44782,847,65060,813,000996,0002,428,928
8Nov 25, 2023 19:177,44987,620,43960,830,000997,0002,437,120
9Nov 25, 2023 19:177,44989,705,26261,827,00002,277,376
10Nov 25, 2023 19:177,44988,881,53660,829,000997,0002,277,376
11Nov 25, 2023 19:177,45686,371,21259,885,0001,996,0002,424,832
12Nov 25, 2023 19:177,51285,556,89461,342,0001,005,0002,277,376
13Nov 25, 2023 19:177,618120,302,12463,232,38002,170,880
14Nov 25, 2023 19:177,643121,850,54363,435,91202,170,880
15Nov 25, 2023 19:177,655121,063,45063,539,90702,297,856