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 listJul 21, 2022 06:24Robert BurkeRobert BurkeScore: 8,823Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2022 06:248,81099,730,47472,125,0001,001,0002,510,848
2Jul 21, 2022 06:248,81594,272,15172,164,0001,002,0002,437,120
3Jul 21, 2022 06:248,81796,121,66172,175,0001,002,0002,428,928
4Jul 21, 2022 06:248,81897,592,01572,184,0001,002,0002,428,928
5Jul 21, 2022 06:248,81996,975,37272,193,0001,002,0002,433,024
6Jul 21, 2022 06:248,82292,743,72372,217,0001,003,0002,433,024
7Jul 21, 2022 06:248,823104,670,71473,230,00002,277,376
8Jul 21, 2022 06:248,82398,263,91572,224,0001,003,0002,277,376
9Jul 21, 2022 06:248,82497,730,57372,236,0001,003,0002,428,928
10Jul 21, 2022 06:248,82596,689,49472,242,0001,003,0002,277,376
11Jul 21, 2022 06:248,82896,812,00373,276,00002,428,928
12Jul 21, 2022 06:248,83399,610,84772,307,0001,004,0002,428,928
13Jul 21, 2022 06:249,567136,047,08479,409,18302,301,952
14Jul 21, 2022 06:249,567136,268,93579,405,77402,301,952
15Jul 21, 2022 06:249,591142,097,84379,609,28502,174,976