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 16, 2022 13:09Robert BurkeRobert BurkeScore: 8,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2022 13:098,17392,082,15666,840,000997,0002,277,376
2Jul 16, 2022 13:098,17392,353,72366,838,000997,0002,277,376
3Jul 16, 2022 13:098,17587,074,14565,859,0001,995,0002,428,928
4Jul 16, 2022 13:098,23395,349,59067,329,0001,004,0002,428,928
5Jul 16, 2022 13:098,24091,925,28268,388,00002,428,928
6Jul 16, 2022 13:098,24491,404,36168,424,00002,424,832
7Jul 16, 2022 13:098,24589,730,45568,433,00002,539,520
8Jul 16, 2022 13:098,25295,073,17567,487,0001,007,0002,269,184
9Jul 16, 2022 13:098,25389,615,18068,498,00002,535,424
10Jul 16, 2022 13:098,26391,839,42268,579,00002,424,832
11Jul 16, 2022 13:098,36694,168,99968,430,0001,006,0002,428,928
12Jul 16, 2022 13:098,37289,795,52868,483,0001,007,0002,539,520
13Jul 16, 2022 13:098,691124,413,94872,138,03702,174,976
14Jul 16, 2022 13:098,706123,153,76172,260,67102,293,760
15Jul 16, 2022 13:098,734129,628,28872,495,55102,297,856