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 listAug 6, 2023 20:12AliAliScore: 178,963Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 4, 2023 21:05178,8481,543,561,6751,484,439,17702,228,224
2Aug 4, 2023 21:05178,8921,550,168,6351,484,803,71802,240,512
3Aug 6, 2023 20:12178,9521,550,945,7381,485,300,66002,256,896
4Aug 6, 2023 20:12178,9631,556,754,3971,485,391,22602,240,512
5Aug 4, 2023 21:05179,0301,551,468,0731,485,952,58002,236,416
6Aug 6, 2023 20:12179,1621,544,625,1661,487,043,93102,244,608