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 listMay 21, 2025 19:54vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2025 19:5200000Error: expected "53682657018652628 ", got "53682657191135957 "stderr
2May 21, 2025 19:544,46761,468,95634,074,0003,006,0002,424,832
3May 21, 2025 19:544,47459,189,65134,122,0003,010,0002,433,024
4May 21, 2025 19:544,48764,037,46235,228,0002,013,0002,428,928
5May 21, 2025 19:544,48759,153,10834,225,0003,019,0002,273,280
6May 21, 2025 19:544,49160,135,04935,264,0002,015,0002,424,832
7May 21, 2025 19:544,49858,096,36535,313,0002,017,0002,437,120
8May 21, 2025 19:544,51756,600,42035,462,0002,026,0002,465,792
9May 21, 2025 19:544,53364,138,68433,555,0004,067,0002,424,832
10May 21, 2025 19:544,55857,211,67132,857,0004,978,0002,273,280
11May 21, 2025 19:544,56065,411,51034,860,0002,988,0002,273,280
12May 21, 2025 19:544,57357,182,70034,957,0002,996,0002,531,328
13May 21, 2025 19:544,62662,252,50235,366,0003,031,0002,428,928