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 1, 2023 22:08sliceteamsliceteamScore: 10,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2023 22:089,910108,668,40082,256,00002,383,872
2Oct 1, 2023 22:089,922112,642,06280,343,0002,008,0002,523,136
3Oct 1, 2023 22:089,927107,208,22081,386,0001,004,0002,265,088
4Oct 1, 2023 22:089,928111,144,18381,402,0001,004,0002,260,992
5Oct 1, 2023 22:089,934107,172,76081,449,0001,005,0002,383,872
6Oct 1, 2023 22:089,949106,140,97280,588,0001,989,0002,387,968
7Oct 1, 2023 22:0810,005107,535,14482,045,0001,000,0002,260,992
8Oct 1, 2023 22:0810,033147,631,90483,275,13102,269,184
9Oct 1, 2023 22:0810,067111,448,95082,554,0001,006,0002,392,064
10Oct 1, 2023 22:0810,100112,759,61381,831,0001,995,0002,256,896
11Oct 1, 2023 22:0810,254108,041,40283,110,0002,002,0002,260,992
12Oct 1, 2023 22:0810,299110,599,56484,476,0001,005,0002,260,992
13Oct 1, 2023 22:0810,305168,218,67785,527,70702,273,280
14Oct 1, 2023 22:0810,338137,682,41185,807,57702,269,184
15Oct 1, 2023 22:0810,782111,446,46188,486,0001,005,0002,260,992