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 31, 2022 17:19Jack FrigaardJack FrigaardScore: 7,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:197,82193,026,99561,922,0002,996,0002,523,136
2Dec 31, 2022 17:197,83587,881,07562,029,0003,001,0002,277,376
3Dec 31, 2022 17:197,87088,690,85262,304,0003,014,0002,514,944
4Dec 31, 2022 17:197,87187,832,41962,314,0003,015,0002,523,136
5Dec 31, 2022 17:197,87793,444,83362,360,0003,017,0002,519,040
6Dec 31, 2022 17:197,89496,049,20563,508,0002,016,0002,523,136
7Dec 31, 2022 17:197,90892,647,07064,625,0001,009,0002,453,504
8Dec 31, 2022 17:197,90994,012,70264,634,0001,009,0002,293,760
9Dec 31, 2022 17:197,984122,039,11566,271,13702,199,552
10Dec 31, 2022 17:198,01893,056,69064,536,0002,016,0002,523,136
11Dec 31, 2022 17:198,054138,810,61966,850,77102,199,552
12Dec 31, 2022 17:198,07192,931,76464,989,0001,999,0002,453,504
13Dec 31, 2022 17:198,074156,721,68067,016,72802,207,744
14Dec 31, 2022 17:198,09891,544,53564,204,0003,009,0002,523,136
15Dec 31, 2022 17:198,15794,303,78264,716,0002,986,0002,523,136