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 listDec 27, 2023 21:27Jonathan Allen GrantJonathan Allen GrantScore: 457,333Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2023 21:18456,5863,845,917,8983,789,662,16402,232,320
2Dec 27, 2023 21:18456,7283,854,459,1923,790,839,95902,232,320
3Dec 27, 2023 21:27456,8373,847,794,1813,791,749,83002,244,608
4Dec 27, 2023 21:27457,3333,860,380,5843,795,867,86602,256,896
5Dec 27, 2023 21:18457,4153,847,571,1643,796,546,38202,232,320
6Dec 27, 2023 21:27457,4453,863,310,5183,796,794,96202,236,416