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 16, 2024 23:08zielajzielajScore: 3,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 23:083,53350,904,02729,325,00002,330,624
2Nov 16, 2024 23:083,57055,449,66028,607,0001,021,0002,314,240
3Nov 16, 2024 23:083,57360,818,47429,654,00002,273,280
4Nov 16, 2024 23:083,74355,242,67930,061,0001,002,0002,318,336
5Nov 16, 2024 23:083,80360,119,05230,543,0001,018,0002,277,376
6Nov 16, 2024 23:083,83158,784,71129,807,0001,987,0002,310,144