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:59Jack FrigaardJack FrigaardScore: 5,136Success
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:595,10665,345,95039,353,0003,027,0002,453,504
2Dec 31, 2022 16:595,11263,121,79241,417,0001,010,0002,260,992
3Dec 31, 2022 16:595,11568,237,05440,432,0002,021,0002,523,136
4Dec 31, 2022 16:595,12464,709,94841,515,0001,012,0002,457,600
5Dec 31, 2022 16:595,12565,759,42739,498,0003,038,0002,260,992
6Dec 31, 2022 16:595,12964,490,15841,557,0001,013,0002,457,600
7Dec 31, 2022 16:595,13174,465,88240,562,0002,028,0002,260,992
8Dec 31, 2022 16:595,13675,862,82040,600,0002,030,0002,260,992
9Dec 31, 2022 16:595,17866,855,35939,982,0002,998,0002,260,992
10Dec 31, 2022 16:595,20265,516,02940,162,0003,012,0002,260,992
11Dec 31, 2022 16:595,20564,439,12640,189,0003,014,0002,260,992
12Dec 31, 2022 16:595,20770,766,39941,208,0002,010,0002,449,408
13Dec 31, 2022 16:595,312109,605,17644,089,61102,207,744
14Dec 31, 2022 16:595,312124,014,00344,090,24002,199,552
15Dec 31, 2022 16:595,339112,817,56744,314,77902,203,648