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 listNov 8, 2023 15:12Robert BurkeRobert BurkeScore: 7,928Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 15:127,82086,612,16163,911,000998,0002,277,376
2Nov 8, 2023 15:127,87987,430,50965,398,00002,510,848
3Nov 8, 2023 15:127,88685,602,85765,452,00002,519,040
4Nov 8, 2023 15:127,90289,688,16565,584,00002,420,736
5Nov 8, 2023 15:127,90386,927,48064,600,000993,0002,428,928
6Nov 8, 2023 15:127,918126,310,58265,719,11902,174,976
7Nov 8, 2023 15:127,92689,435,40663,795,0001,993,0002,433,024
8Nov 8, 2023 15:127,92893,733,04564,806,000997,0002,277,376
9Nov 8, 2023 15:127,93395,325,30064,847,000997,0002,273,280
10Nov 8, 2023 15:127,93697,513,26264,868,000997,0002,428,928
11Nov 8, 2023 15:127,94283,303,79564,920,000998,0002,428,928
12Nov 8, 2023 15:127,94286,819,01964,922,000998,0002,424,832
13Nov 8, 2023 15:127,948134,929,42765,966,71802,179,072
14Nov 8, 2023 15:128,006133,752,20166,445,84702,301,952
15Nov 8, 2023 15:128,07895,889,26065,050,0002,001,0002,277,376