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 5, 2026 09:33Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 09:3303,090,829,07980,493,0001,176,0002,113,536expected "53691389476164561 ", got " S26708/k26306/c496/x768032/r226/y8324/m3943 S26374/k25994/c496/x768032/r229/y8324/m3943 S26345/k25972/c496/x768032/r227/y8324/m3943 "
2Oct 5, 2026 09:3303,091,384,47481,239,0001,116,0002,113,536expected "53683150671785095 ", got " S26793/k26421/c496/x790911/r225/y8348/m3940 S26651/k26295/c496/x790911/r231/y8348/m3940 S26646/k26298/c496/x790911/r228/y8348/m3940 "
3Oct 5, 2026 09:3303,090,534,55880,482,0001,093,0002,113,536expected "53678826746969938 ", got " S26509/k26321/c496/x132489/r247/y8337/m3936 S26368/k26189/c496/x132489/r251/y8337/m3936 S26378/k26210/c496/x132489/r249/y8337/m3936 "