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 listJan 2, 2023 16:52Bernard TeoBernard TeoScore: 6,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:526,760130,399,77056,108,33702,285,568
2Jan 2, 2023 16:526,761119,671,46356,114,61802,277,376
3Jan 2, 2023 16:526,766127,159,72156,161,77002,277,376
4Jan 2, 2023 16:526,95288,030,17756,687,0001,012,0002,400,256
5Jan 2, 2023 16:526,95482,365,04057,715,00002,273,280
6Jan 2, 2023 16:526,95583,616,67957,723,00002,400,256
7Jan 2, 2023 16:526,96982,390,12056,843,000997,0002,273,280
8Jan 2, 2023 16:526,96982,865,19356,844,000997,0002,273,280
9Jan 2, 2023 16:526,97185,415,06456,860,000997,0002,396,160
10Jan 2, 2023 16:526,97187,819,45655,868,0001,995,0002,273,280
11Jan 2, 2023 16:526,97183,566,01255,868,0001,995,0002,404,352
12Jan 2, 2023 16:526,97981,479,11155,925,0001,997,0002,400,256
13Jan 2, 2023 16:526,98283,876,59756,949,000999,0002,273,280
14Jan 2, 2023 16:526,98581,718,19756,975,000999,0002,273,280
15Jan 2, 2023 16:526,98582,205,25055,974,0001,999,0002,400,256