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 listSep 11, 2023 02:29sliceteamsliceteamScore: 8,728Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2023 02:298,68899,162,48670,111,0002,003,0002,383,872
2Sep 11, 2023 02:298,701135,604,87472,218,89802,273,280
3Sep 11, 2023 02:298,701101,174,42471,217,0001,003,0002,260,992
4Sep 11, 2023 02:298,70795,049,46971,265,0001,003,0002,387,968
5Sep 11, 2023 02:298,71497,805,20871,326,0001,004,0002,392,064
6Sep 11, 2023 02:298,72598,410,35171,416,0001,005,0002,506,752
7Sep 11, 2023 02:298,72596,763,81070,410,0002,011,0002,260,992
8Sep 11, 2023 02:298,72894,916,83671,439,0001,006,0002,383,872
9Sep 11, 2023 02:298,748142,844,70372,607,17102,273,280
10Sep 11, 2023 02:298,753104,201,43771,645,0001,009,0002,379,776
11Sep 11, 2023 02:298,803142,013,42573,068,23502,269,184
12Sep 11, 2023 02:298,80499,198,85472,072,0001,001,0002,260,992
13Sep 11, 2023 02:298,808101,545,97872,109,0001,001,0002,392,064
14Sep 11, 2023 02:298,83899,325,50672,355,0001,004,0002,260,992
15Sep 11, 2023 02:298,94995,746,92773,272,0001,003,0002,490,368