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 11, 2024 14:54ndbnndbnScore: 128,356Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 11, 2024 14:54127,1161,080,441,197966,145,00088,921,0002,478,080
2Nov 11, 2024 14:54128,3561,087,620,677972,410,00092,943,0002,478,080
3Nov 11, 2024 14:54128,7061,093,047,016971,326,00096,932,0002,273,280