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 listJan 1, 2023 16:06Jack FrigaardJack FrigaardScore: 4,926Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:064,90366,636,77839,679,0001,017,0002,461,696
2Jan 1, 2023 16:064,91865,323,30339,825,000995,0002,457,600
3Jan 1, 2023 16:064,92063,646,07737,845,0002,987,0002,260,992
4Jan 1, 2023 16:064,92066,285,96138,848,0001,992,0002,449,408
5Jan 1, 2023 16:064,92163,354,08637,854,0002,988,0002,523,136
6Jan 1, 2023 16:064,92267,505,57837,863,0002,989,0002,445,312
7Jan 1, 2023 16:064,92662,957,53237,894,0002,991,0002,306,048
8Jan 1, 2023 16:064,92667,608,50237,891,0002,991,0002,260,992
9Jan 1, 2023 16:064,95965,422,77039,154,0002,007,0002,461,696
10Jan 1, 2023 16:064,96462,764,06439,192,0002,009,0002,453,504
11Jan 1, 2023 16:064,96763,507,14138,212,0003,016,0002,453,504
12Jan 1, 2023 16:064,97863,417,90038,298,0003,023,0002,457,600
13Jan 1, 2023 16:064,990111,969,64341,420,64102,215,936
14Jan 1, 2023 16:065,000111,298,98141,496,56002,199,552
15Jan 1, 2023 16:065,035110,835,08141,788,67102,203,648