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 17:12Robert BurkeRobert BurkeScore: 8,253Success
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 17:128,16896,514,51766,797,000996,0002,277,376
2Jul 21, 2022 17:128,16992,423,48966,806,000997,0002,424,832
3Jul 21, 2022 17:128,17290,286,47266,834,000997,0002,277,376
4Jul 21, 2022 17:128,23993,936,52267,380,0001,005,0002,277,376
5Jul 21, 2022 17:128,24593,208,03867,428,0001,006,0002,539,520
6Jul 21, 2022 17:128,24594,604,17668,433,00002,277,376
7Jul 21, 2022 17:128,24690,811,73067,436,0001,006,0002,437,120
8Jul 21, 2022 17:128,25395,363,76167,489,0001,007,0002,277,376
9Jul 21, 2022 17:128,25793,230,26467,525,0001,007,0002,277,376
10Jul 21, 2022 17:128,25892,068,13668,539,00002,428,928
11Jul 21, 2022 17:128,25896,077,14867,535,0001,007,0002,277,376
12Jul 21, 2022 17:128,26793,915,12467,603,0001,009,0002,539,520
13Jul 21, 2022 17:128,687126,324,59272,103,75702,170,880
14Jul 21, 2022 17:128,713124,930,64372,317,20502,301,952
15Jul 21, 2022 17:128,717128,623,88572,347,88702,301,952