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 31, 2022 16:57Jack FrigaardJack FrigaardScore: 5,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 16:575,09867,741,36739,291,0003,022,0002,260,992
2Dec 31, 2022 16:575,10864,681,44740,381,0002,019,0002,461,696
3Dec 31, 2022 16:575,10974,166,47139,378,0003,029,0002,260,992
4Dec 31, 2022 16:575,11366,450,31240,416,0002,020,0002,260,992
5Dec 31, 2022 16:575,11972,826,07741,478,0001,011,0002,260,992
6Dec 31, 2022 16:575,12464,485,01841,521,0001,012,0002,306,048
7Dec 31, 2022 16:575,12763,545,73140,528,0002,026,0002,260,992
8Dec 31, 2022 16:575,13268,562,20041,585,0001,014,0002,449,408
9Dec 31, 2022 16:575,13967,770,17642,652,00002,457,600
10Dec 31, 2022 16:575,20068,903,45240,153,0003,011,0002,260,992
11Dec 31, 2022 16:575,20168,960,20740,155,0003,011,0002,260,992
12Dec 31, 2022 16:575,20566,418,49341,193,0002,009,0002,441,216
13Dec 31, 2022 16:575,312104,518,08044,091,60002,207,744
14Dec 31, 2022 16:575,318117,530,36244,138,56402,211,840
15Dec 31, 2022 16:575,341121,201,99444,332,26902,203,648