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 13, 2024 16:49Nguyen Thanh VinhNguyen Thanh VinhScore: 82,515Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 16:5982,163704,408,157649,003,00032,949,0002,265,088
2Dec 13, 2024 16:5982,359712,378,717650,650,00032,931,0002,277,376
3Dec 13, 2024 16:4982,390714,895,843636,921,00046,920,0002,277,376
4Dec 13, 2024 16:4982,515707,511,424649,930,00034,942,0002,273,280
5Dec 13, 2024 16:5982,630716,638,292640,910,00044,923,0002,273,280
6Dec 13, 2024 16:4983,126716,292,150643,019,00046,928,0002,265,088