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 listApr 12, 2024 07:01Matt StuchlikMatt StuchlikScore: 17,371Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2024 06:5916,691197,498,541138,535,41602,281,472
2Apr 12, 2024 07:0116,707200,123,335138,664,89802,285,568
3Apr 12, 2024 07:0116,715202,784,961138,736,58502,277,376
4Apr 12, 2024 07:0116,720213,806,831138,779,46402,289,664
5Apr 12, 2024 07:0116,723213,814,843138,799,33302,285,568
6Apr 12, 2024 06:5916,725211,243,839138,820,02802,289,664
7Apr 12, 2024 07:0116,731204,811,717138,866,44702,301,952
8Apr 12, 2024 06:5116,734207,929,350138,893,46502,285,568
9Apr 12, 2024 07:0117,369166,921,662142,163,0002,002,0002,285,568
10Apr 12, 2024 07:0117,370168,770,010142,172,0002,002,0002,285,568
11Apr 12, 2024 07:0117,371164,848,833143,179,0001,001,0002,285,568
12Apr 12, 2024 07:0117,372168,616,976142,186,0002,002,0002,277,376
13Apr 12, 2024 07:0117,376171,912,639142,218,0002,003,0002,269,184
14Apr 12, 2024 07:0117,396172,475,256143,383,0001,002,0002,285,568
15Apr 12, 2024 07:0117,398170,939,511144,405,00002,285,568
16Apr 12, 2024 07:0117,401172,006,953143,424,0001,002,0002,285,568
17Apr 12, 2024 07:0117,403171,610,577144,442,00002,265,088
18Apr 12, 2024 06:5117,486204,290,136145,132,79202,293,760
19Apr 12, 2024 06:5917,497214,420,698145,223,59902,252,800
20Apr 12, 2024 06:5117,503205,294,352145,273,71402,289,664
21Apr 12, 2024 07:0117,518198,274,782145,400,98602,297,856