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 listNov 25, 2023 18:58Andrey KuzminAndrey KuzminScore: 351,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2023 18:58350,1342,961,097,4112,906,112,36502,195,456
2Nov 25, 2023 18:58351,4482,981,837,1462,917,019,48702,191,360
3Nov 25, 2023 18:58352,1602,977,184,6152,922,926,56302,187,264