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:45Joad 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:4400000Error: expected "53682564364095190 ", got "53682579038423442 "stderr
2Oct 14, 2024 16:4400000Error: No answer to stdout. Died or killed?stderr
3Oct 14, 2024 16:4400000Error: No answer to stdout. Died or killed?stderr
4Oct 14, 2024 16:444,22961,103,49233,096,0002,005,0002,273,280
5Oct 14, 2024 16:454,24755,782,60532,233,0003,021,0002,387,968
6Oct 14, 2024 16:444,25957,234,17734,343,0001,010,0002,301,952
7Oct 14, 2024 16:454,26657,106,15433,381,0002,023,0002,273,280
8Oct 14, 2024 16:454,26857,046,17234,411,0001,012,0002,383,872
9Oct 14, 2024 16:454,30259,574,42934,683,0001,020,0002,531,328
10Oct 14, 2024 16:444,31362,248,30933,812,0001,988,0002,301,952
11Oct 14, 2024 16:444,31960,297,94435,846,00002,531,328
12Oct 14, 2024 16:444,31967,761,23234,855,000995,0002,310,144
13Oct 14, 2024 16:454,34661,147,29135,067,0001,001,0002,306,048
14Oct 14, 2024 16:444,35758,881,48234,156,0002,009,0002,301,952
15Oct 14, 2024 16:454,38163,557,17634,346,0002,020,0002,297,856