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 11, 2023 04:43sliceteamsliceteamScore: 8,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 04:438,504129,872,70070,586,43402,277,376
2Dec 11, 2023 04:438,528144,558,12670,781,23502,273,280
3Dec 11, 2023 04:438,68797,721,00271,101,0001,001,0002,392,064
4Dec 11, 2023 04:438,68995,129,41571,116,0001,001,0002,273,280
5Dec 11, 2023 04:438,69497,698,55271,159,0001,002,0002,400,256
6Dec 11, 2023 04:438,69898,987,87170,187,0002,005,0002,273,280
7Dec 11, 2023 04:438,701132,713,55372,217,48902,277,376
8Dec 11, 2023 04:438,70598,486,47170,248,0002,007,0002,273,280
9Dec 11, 2023 04:438,70691,384,33671,255,0001,003,0002,400,256
10Dec 11, 2023 04:438,706104,706,74371,257,0001,003,0002,400,256
11Dec 11, 2023 04:438,70894,003,48270,273,0002,007,0002,273,280
12Dec 11, 2023 04:438,71194,861,00471,299,0001,004,0002,273,280
13Dec 11, 2023 04:438,72092,372,45171,368,0001,005,0002,273,280
14Dec 11, 2023 04:438,72597,294,76772,417,00002,273,280
15Dec 11, 2023 04:438,81096,128,43872,121,0001,001,0002,400,256