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 20, 2022 16:24Robert BurkeRobert BurkeScore: 8,469Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:248,44992,834,41468,123,0002,003,0002,277,376
2Jul 20, 2022 16:248,45592,771,24569,171,0001,002,0002,424,832
3Jul 20, 2022 16:248,45694,162,89469,184,0001,002,0002,428,928
4Jul 20, 2022 16:248,45891,760,87069,197,0001,002,0002,424,832
5Jul 20, 2022 16:248,460103,495,51168,210,0002,006,0002,277,376
6Jul 20, 2022 16:248,46790,315,90669,270,0001,003,0002,277,376
7Jul 20, 2022 16:248,46790,181,75469,270,0001,003,0002,433,024
8Jul 20, 2022 16:248,46990,398,95768,283,0002,008,0002,506,752
9Jul 20, 2022 16:248,47195,960,55168,327,0001,980,0002,277,376
10Jul 20, 2022 16:248,47490,788,74868,326,0002,009,0002,433,024
11Jul 20, 2022 16:248,49692,858,40670,518,00002,420,736
12Jul 20, 2022 16:248,516101,530,81669,674,0001,009,0002,277,376
13Jul 20, 2022 16:249,889137,911,26682,076,35402,170,880
14Jul 20, 2022 16:249,894140,757,25182,121,85802,174,976
15Jul 20, 2022 16:249,895132,573,81982,131,34702,174,976