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 18, 2024 00:22zielajzielajScore: 4,041Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 00:223,83754,789,00029,855,0001,990,0002,478,080
2Nov 18, 2024 00:223,83757,445,72529,861,0001,990,0002,322,432
3Nov 18, 2024 00:223,84958,482,03830,948,000998,0002,473,984
4Nov 18, 2024 00:224,04156,320,80033,544,00002,510,848
5Nov 18, 2024 00:224,07858,660,70632,855,000995,0002,510,848
6Nov 18, 2024 00:224,12663,459,58832,232,0002,014,0002,519,040