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 7, 2024 21:12Joad NacerJoad NacerScore: 9,194Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2024 21:129,063100,999,74374,219,0001,002,0002,535,424
2Oct 7, 2024 21:139,06796,584,31775,260,00002,535,424
3Oct 7, 2024 21:129,06797,464,05174,250,0001,003,0002,428,928
4Oct 7, 2024 21:129,06797,966,50873,250,0002,006,0002,535,424
5Oct 7, 2024 21:129,068106,708,67775,263,00002,424,832
6Oct 7, 2024 21:129,069101,384,05874,271,0001,003,0002,433,024
7Oct 7, 2024 21:129,07099,092,55275,283,00002,433,024
8Oct 7, 2024 21:119,07197,825,80975,292,00002,424,832
9Oct 7, 2024 21:129,071100,636,24374,287,0001,003,0002,433,024
10Oct 7, 2024 21:119,07398,547,75273,297,0002,008,0002,424,832
11Oct 7, 2024 21:129,073100,508,00974,301,0001,004,0002,428,928
12Oct 7, 2024 21:129,07498,559,57174,314,0001,004,0002,273,280
13Oct 7, 2024 21:129,07599,184,58974,315,0001,004,0002,428,928
14Oct 7, 2024 21:129,07598,997,78674,317,0001,004,0002,514,944
15Oct 7, 2024 21:129,07697,048,54073,320,0002,008,0002,535,424
16Oct 7, 2024 21:129,07799,197,50674,335,0001,004,0002,437,120
17Oct 7, 2024 21:129,078104,646,84774,344,0001,004,0002,437,120
18Oct 7, 2024 21:139,081103,933,63775,373,00002,273,280
19Oct 7, 2024 21:129,096101,029,36775,500,00002,433,024
20Oct 7, 2024 21:129,10397,845,07574,547,0001,007,0002,433,024
21Oct 7, 2024 21:139,12099,209,84273,707,0001,992,0002,424,832
22Oct 7, 2024 21:129,194102,616,17575,310,0001,004,0002,265,088
23Oct 7, 2024 21:119,224104,724,95476,557,00002,535,424
24Oct 7, 2024 21:129,527106,753,69678,076,0001,000,0002,535,424
25Oct 7, 2024 21:139,790101,734,31680,250,0001,003,0002,428,928
26Oct 7, 2024 21:129,813102,934,55581,451,00002,424,832
27Oct 7, 2024 21:139,814100,083,47980,449,0001,005,0002,531,328
28Oct 7, 2024 21:129,819105,004,94781,495,00002,531,328
29Oct 7, 2024 21:129,829108,179,18781,577,00002,531,328
30Oct 7, 2024 21:129,833107,707,14581,615,00002,531,328
31Oct 7, 2024 21:129,846104,892,91781,718,00002,269,184
32Oct 7, 2024 21:129,853108,775,75380,783,000997,0002,428,928
33Oct 7, 2024 21:139,854107,358,73079,794,0001,994,0002,531,328
34Oct 7, 2024 21:129,855102,490,82480,800,000997,0002,433,024
35Oct 7, 2024 21:129,855109,469,45279,803,0001,995,0002,510,848
36Oct 7, 2024 21:129,857105,812,49581,811,00002,428,928
37Oct 7, 2024 21:129,857108,449,02381,809,00002,531,328
38Oct 7, 2024 21:129,861109,841,07580,845,000998,0002,269,184
39Oct 7, 2024 21:129,862101,032,68079,862,0001,996,0002,531,328
40Oct 7, 2024 21:129,866100,557,91979,887,0001,997,0002,437,120
41Oct 7, 2024 21:129,977108,865,55581,810,000997,0002,523,136
42Oct 7, 2024 21:1210,888115,270,74790,374,00002,269,184