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 11:40Joad 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 11:4000000Error: expected "53683902186192935 ", got "53683904599260910 "stderr
2Oct 14, 2024 11:3900000Error: expected "53691762782109743 ", got "53691780395316154 "stderr
3Oct 14, 2024 11:3900000Error: expected "53691439944684071 ", got "53691445871728053 "stderr
4Oct 14, 2024 11:404,33564,550,22934,982,000999,0002,310,144
5Oct 14, 2024 11:404,35256,522,04634,113,0002,006,0002,306,048
6Oct 14, 2024 11:404,36462,958,51334,211,0002,012,0002,535,424
7Oct 14, 2024 11:404,37056,359,32735,263,0001,007,0002,301,952
8Oct 14, 2024 11:404,37163,678,40935,271,0001,007,0002,273,280
9Oct 14, 2024 11:404,39961,241,93635,495,0001,014,0002,306,048
10Oct 14, 2024 11:404,43958,295,24733,860,0002,987,0002,535,424
11Oct 14, 2024 11:404,44067,594,40635,857,000996,0002,269,184
12Oct 14, 2024 11:404,44363,826,66336,875,00002,301,952
13Oct 14, 2024 11:404,44863,994,30733,922,0002,993,0002,535,424
14Oct 14, 2024 11:404,45259,315,35035,957,000998,0002,301,952
15Oct 14, 2024 11:404,46159,787,32335,025,0002,001,0002,297,856
16Oct 14, 2024 11:404,56361,008,62435,881,0001,993,0002,531,328
17Oct 14, 2024 11:404,57263,152,11436,948,000998,0002,297,856
18Oct 14, 2024 11:404,92768,853,63338,898,0001,994,0002,535,424