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 24, 2024 02:48MatthiasMatthiasScore: 9,858Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2024 02:488,74498,939,53871,566,0001,007,0002,289,664
2Nov 24, 2024 02:488,759104,051,02871,692,0001,009,0002,523,136
3Nov 24, 2024 02:488,769101,796,33671,783,000996,0002,273,280
4Nov 24, 2024 02:489,858111,287,78479,829,0001,995,0002,285,568
5Nov 24, 2024 02:489,860107,422,18879,843,0001,996,0002,285,568
6Nov 24, 2024 02:489,893113,720,17780,112,0002,002,0002,285,568