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 listAug 14, 2026 17:04marko1597marko1597Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2026 17:040738,458,672726,973,0001,175,0002,117,632expected "53676730185770666 ", got "25295396890 "stderr
2Aug 14, 2026 17:040730,839,790719,139,0001,144,0002,117,632expected "53690586895801370 ", got "25296176008 "stderr
3Aug 14, 2026 17:040731,441,438719,053,0001,142,0002,117,632expected "53689031105893212 ", got "25295942492 "stderr