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 listAug 6, 2023 15:51dzaimadzaimaScore: 10,430Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2023 15:519,812135,294,32581,436,79902,265,088
2Aug 6, 2023 15:519,813141,958,55581,450,80402,273,280
3Aug 6, 2023 15:519,827147,762,54781,563,04102,265,088
4Aug 6, 2023 15:5110,425113,165,86885,523,0001,006,0002,277,376
5Aug 6, 2023 15:5110,428113,949,32586,549,00002,273,280
6Aug 6, 2023 15:5110,428116,314,09685,548,0001,006,0002,273,280
7Aug 6, 2023 15:5110,429120,418,43785,554,0001,006,0002,281,472
8Aug 6, 2023 15:5110,430113,527,46685,565,0001,006,0002,273,280
9Aug 6, 2023 15:5110,431115,110,93985,572,0001,006,0002,289,664
10Aug 6, 2023 15:5110,431111,543,51986,580,00002,281,472
11Aug 6, 2023 15:5110,432116,400,52486,582,00002,289,664
12Aug 6, 2023 15:5110,435113,628,56885,602,0001,007,0002,523,136
13Aug 6, 2023 15:5110,452112,110,18984,758,0001,994,0002,289,664
14Aug 6, 2023 15:5110,458112,923,89385,807,000997,0002,363,392
15Aug 6, 2023 15:5110,458118,225,62985,808,000997,0002,289,664