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 listDec 15, 2023 14:10matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2023 14:1000000Error: expected "53681630958349682 ", got "53681628398349682 "
2Dec 15, 2023 14:1000000Error: expected "53688815411741218 ", got "53688815411738658 "
3Dec 15, 2023 14:1100000Error: expected "53687874835588373 ", got "53687874835585813 "
4Dec 15, 2023 14:116,76983,643,64854,175,0002,006,0002,519,040
5Dec 15, 2023 14:116,78382,635,55055,295,0001,005,0002,519,040
6Dec 15, 2023 14:116,79485,925,40853,369,0003,020,0002,260,992
7Dec 15, 2023 14:116,80085,037,37154,425,0002,015,0002,392,064
8Dec 15, 2023 14:116,81380,247,80854,527,0002,019,0002,523,136
9Dec 15, 2023 14:116,84788,143,14255,832,000997,0002,404,352
10Dec 15, 2023 14:116,87879,682,61355,084,0002,003,0002,260,992
11Dec 15, 2023 14:116,92282,116,34856,448,0001,008,0002,400,256
12Dec 15, 2023 14:117,053113,693,45758,537,43202,281,472
13Dec 15, 2023 14:117,137121,817,57059,234,31802,281,472
14Dec 15, 2023 14:117,174116,634,99959,545,54402,281,472
15Dec 15, 2023 14:117,20785,171,64657,827,0001,994,0002,502,656