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 1, 2023 16:18Hal FHal FScore: 6,964Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:186,80879,479,15653,480,0003,027,0002,416,640
2Jan 1, 2023 16:186,81085,340,15855,510,0001,009,0002,498,560
3Jan 1, 2023 16:186,81383,226,65553,518,0003,029,0002,342,912
4Jan 1, 2023 16:186,81983,735,78853,567,0003,032,0002,334,720
5Jan 1, 2023 16:186,87387,488,39554,041,0003,002,0002,412,544
6Jan 1, 2023 16:186,87980,184,14254,089,0003,004,0002,318,336
7Jan 1, 2023 16:186,89182,057,94554,188,0003,010,0002,482,176
8Jan 1, 2023 16:186,96481,084,90955,773,0002,028,0002,293,760
9Jan 1, 2023 16:186,96984,220,33753,852,0003,989,0002,498,560
10Jan 1, 2023 16:186,99681,180,95455,065,0003,003,0002,478,080
11Jan 1, 2023 16:187,00382,273,38855,119,0003,006,0002,326,528
12Jan 1, 2023 16:187,22784,659,49456,985,0002,999,0002,285,568
13Jan 1, 2023 16:187,606139,739,72363,128,69802,195,456
14Jan 1, 2023 16:187,704123,280,29363,944,37402,195,456
15Jan 1, 2023 16:1813,295173,315,720110,349,53802,195,456