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 listJan 7, 2024 18:34Evgeniy AsvatovEvgeniy AsvatovScore: 155,391Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 7, 2024 18:34154,8051,339,978,8371,284,878,89402,306,048
2Jan 7, 2024 18:34154,9101,347,083,1181,285,751,14802,187,264
3Jan 7, 2024 18:34154,9481,353,191,9221,286,070,42102,293,760
4Jan 7, 2024 18:34155,3911,360,863,5261,289,747,73002,187,264
5Jan 7, 2024 18:34155,4011,353,913,2521,289,827,08402,301,952
6Jan 7, 2024 18:34155,4301,344,224,8291,290,072,54402,306,048