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 16:21Joad 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 16:2000000Error: expected "53689130084281974 ", got "53689145902315387 "stderr
2Oct 14, 2024 16:2100000Error: expected "53686738164506860 ", got "53686744277369675 "stderr
3Oct 14, 2024 16:214,32565,193,96932,909,0002,991,0002,404,352
4Oct 14, 2024 16:214,35462,857,81533,128,0003,011,0002,408,448
5Oct 14, 2024 16:214,36658,718,42834,228,0002,013,0002,281,472
6Oct 14, 2024 16:214,38357,882,78635,365,0001,010,0002,392,064
7Oct 14, 2024 16:214,40658,097,07234,538,0002,031,0002,404,352
8Oct 14, 2024 16:214,40962,904,82835,579,0001,016,0002,289,664
9Oct 14, 2024 16:214,43865,731,88634,844,0001,991,0002,392,064
10Oct 14, 2024 16:214,44067,465,47733,865,0002,988,0002,289,664
11Oct 14, 2024 16:214,46561,479,54935,059,0002,003,0002,281,472
12Oct 14, 2024 16:214,49159,716,65435,264,0002,015,0002,392,064
13Oct 14, 2024 16:214,49262,594,03234,258,0003,022,0002,281,472
14Oct 14, 2024 16:214,62770,119,81735,375,0003,032,0002,289,664