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 14, 2024 00:22Joad 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 14, 2024 00:2200000Error: expected "53682474633945935 ", got "53682477778933064 "stderr
2Oct 14, 2024 00:224,23158,680,22233,110,0002,006,0002,273,280
3Oct 14, 2024 00:224,29358,889,48034,618,0001,018,0002,531,328
4Oct 14, 2024 00:224,31862,183,08033,851,0001,991,0002,531,328
5Oct 14, 2024 00:224,34159,353,22833,032,0003,002,0002,293,760
6Oct 14, 2024 00:224,35057,595,59334,101,0002,005,0002,531,328
7Oct 14, 2024 00:224,36560,512,91635,227,0001,006,0002,301,952
8Oct 14, 2024 00:224,37464,249,95934,285,0002,016,0002,293,760
9Oct 14, 2024 00:224,37962,664,63934,324,0002,019,0002,383,872
10Oct 14, 2024 00:224,41865,155,12836,666,00002,531,328
11Oct 14, 2024 00:224,58763,746,53935,064,0003,005,0002,297,856
12Oct 14, 2024 00:224,86259,801,15137,328,0003,026,0002,273,280
13Oct 14, 2024 00:224,94762,752,40840,061,0001,001,0002,387,968