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 8, 2023 17:03Serge SmirnovSerge SmirnovScore: 43,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2023 17:0343,521440,081,825361,226,79702,285,568
2Oct 8, 2023 17:0343,559426,012,852361,543,35702,277,376
3Oct 8, 2023 17:0343,601421,292,389361,890,48502,281,472
4Oct 8, 2023 17:0343,606429,866,621361,927,35902,289,664
5Oct 8, 2023 17:0343,633437,080,744362,152,57002,277,376
6Oct 8, 2023 17:0343,652419,035,194362,308,29902,273,280