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 15:56Jack FrigaardJack FrigaardScore: 4,948Success
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 15:564,81897,202,71539,986,63002,203,648
2Jan 1, 2023 15:564,820121,781,29340,003,31702,207,744
3Jan 1, 2023 15:564,83098,630,31840,091,95902,203,648
4Jan 1, 2023 15:564,93765,872,44037,977,0002,998,0002,457,600
5Jan 1, 2023 15:564,94265,733,20238,014,0003,001,0002,461,696
6Jan 1, 2023 15:564,94363,822,26839,030,0002,001,0002,519,040
7Jan 1, 2023 15:564,94563,952,12238,042,0003,003,0002,523,136
8Jan 1, 2023 15:564,94867,875,41539,062,0002,003,0002,523,136
9Jan 1, 2023 15:564,94861,545,65438,067,0003,005,0002,523,136
10Jan 1, 2023 15:564,95067,987,51938,080,0003,006,0002,523,136
11Jan 1, 2023 15:564,95763,496,15138,135,0003,010,0002,523,136
12Jan 1, 2023 15:564,97864,693,48338,295,0003,023,0002,523,136
13Jan 1, 2023 15:564,99263,568,45139,415,0002,021,0002,453,504
14Jan 1, 2023 15:564,99363,926,30239,417,0002,021,0002,453,504
15Jan 1, 2023 15:565,00568,646,38939,513,0002,026,0002,461,696