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 listOct 11, 2024 00:49Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 00:4800000Error: expected "53688321723785476 ", got "53688331069119756"stderr
2Oct 11, 2024 00:495,90772,440,28546,027,0003,001,0002,277,376
3Oct 11, 2024 00:495,90968,402,76947,046,0002,001,0002,306,048
4Oct 11, 2024 00:495,90971,046,70847,045,0002,001,0002,306,048
5Oct 11, 2024 00:495,91971,640,79946,121,0003,007,0002,306,048
6Oct 11, 2024 00:495,92572,118,83147,172,0002,007,0002,306,048
7Oct 11, 2024 00:495,98372,781,84645,687,0003,972,0002,498,560
8Oct 11, 2024 00:496,01371,183,87147,909,0001,996,0002,277,376
9Oct 11, 2024 00:496,02874,044,76148,032,0002,001,0002,301,952
10Oct 11, 2024 00:496,02970,536,34247,040,0003,002,0002,301,952
11Oct 11, 2024 00:496,03077,217,80547,046,0003,002,0002,531,328
12Oct 11, 2024 00:496,03270,875,56648,062,0002,002,0002,301,952
13Oct 11, 2024 00:496,04571,922,58548,170,0002,007,0002,301,952