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 listDec 30, 2022 18:16Jack FrigaardJack FrigaardScore: 5,161Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 18:165,11573,548,11840,437,0002,021,0002,523,136
2Dec 30, 2022 18:165,11767,270,45539,434,0003,033,0002,457,600
3Dec 30, 2022 18:165,11968,244,81540,463,0002,023,0002,514,944
4Dec 30, 2022 18:165,12064,867,18840,474,0002,023,0002,523,136
5Dec 30, 2022 18:165,13671,848,63640,601,0002,030,0002,523,136
6Dec 30, 2022 18:165,15669,916,24139,811,0002,985,0002,445,312
7Dec 30, 2022 18:165,15968,458,95740,832,0001,991,0002,457,600
8Dec 30, 2022 18:165,16170,919,99640,841,0001,992,0002,453,504
9Dec 30, 2022 18:165,17167,214,69339,929,0002,994,0002,523,136
10Dec 30, 2022 18:165,178121,269,50942,976,67302,207,744
11Dec 30, 2022 18:165,19771,509,66842,128,0001,003,0002,453,504
12Dec 30, 2022 18:165,20071,965,43440,150,0003,011,0002,523,136
13Dec 30, 2022 18:165,201115,883,07043,164,88202,207,744
14Dec 30, 2022 18:165,215119,767,38543,288,13102,199,552
15Dec 30, 2022 18:165,21870,812,25141,295,0002,014,0002,523,136