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 17:02Jack FrigaardJack FrigaardScore: 5,126Success
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 17:025,08765,753,88239,206,0003,015,0002,260,992
2Dec 31, 2022 17:025,10069,808,65839,308,0003,023,0002,519,040
3Dec 31, 2022 17:025,10071,834,76239,307,0003,023,0002,260,992
4Dec 31, 2022 17:025,10365,497,28939,334,0003,025,0002,449,408
5Dec 31, 2022 17:025,11263,564,17142,430,00002,453,504
6Dec 31, 2022 17:025,11465,643,91140,422,0002,021,0002,293,760
7Dec 31, 2022 17:025,12664,889,91840,519,0002,025,0002,523,136
8Dec 31, 2022 17:025,12672,781,15139,505,0003,038,0002,260,992
9Dec 31, 2022 17:025,13870,658,08641,634,0001,015,0002,260,992
10Dec 31, 2022 17:025,18466,835,23741,027,0002,001,0002,260,992
11Dec 31, 2022 17:025,19668,953,66742,123,0001,002,0002,461,696
12Dec 31, 2022 17:025,22470,658,39240,335,0003,025,0002,457,600
13Dec 31, 2022 17:025,347110,063,88344,384,10002,199,552
14Dec 31, 2022 17:025,453110,559,52345,260,53902,207,744
15Dec 31, 2022 17:025,456127,809,91545,282,07402,220,032