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 4, 2024 06:13Kasper KivimäkiKasper KivimäkiScore: 62,664Success
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, 2024 06:2262,337577,798,036517,393,75402,240,512
2Aug 4, 2024 06:2262,342577,276,542517,436,70202,244,608
3Aug 4, 2024 06:1262,421573,433,994518,090,97202,183,168
4Aug 4, 2024 06:1262,464595,279,186518,448,52102,248,704
5Aug 4, 2024 06:2262,509587,540,706518,822,14602,248,704
6Aug 4, 2024 06:1262,618587,339,417519,731,84802,297,856
7Aug 4, 2024 06:1362,630585,548,193519,832,93502,338,816
8Aug 4, 2024 06:1362,664580,661,425520,111,60602,199,552
9Aug 4, 2024 06:1362,680580,644,831520,243,13102,199,552
10Aug 4, 2024 06:2163,027595,737,431523,124,73402,207,744
11Aug 4, 2024 06:2163,095592,433,868523,687,61402,207,744
12Aug 4, 2024 06:2163,107588,212,698523,786,69802,215,936
13Aug 4, 2024 06:1363,654589,018,552528,329,01102,240,512
14Aug 4, 2024 06:1364,100594,550,222532,026,09302,228,224
15Aug 4, 2024 06:1364,414600,086,365534,636,28402,236,416