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 listJul 20, 2023 20:32gchebanovgchebanovScore: 8,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 20:327,65890,063,55163,564,00002,392,064
2Jul 20, 2023 20:327,70889,578,50061,977,0001,999,0002,482,176
3Jul 20, 2023 20:327,71090,405,73161,995,0001,999,0002,469,888
4Jul 20, 2023 20:328,05496,367,72564,850,0001,995,0002,461,696
5Jul 20, 2023 20:328,10399,798,81965,248,0002,007,0002,392,064
6Jul 20, 2023 20:328,11397,263,87365,327,0002,010,0002,379,776
7Jul 20, 2023 20:328,11889,039,04067,380,00002,473,984
8Jul 20, 2023 20:328,13791,381,22167,535,00002,367,488
9Jul 20, 2023 20:328,16897,367,74667,791,00002,367,488
10Jul 20, 2023 20:328,17194,098,79266,819,000997,0002,367,488
11Jul 20, 2023 20:328,18592,108,70666,939,000999,0002,375,680
12Jul 20, 2023 20:328,23296,115,89268,327,00002,457,600
13Jul 20, 2023 20:329,955151,406,48882,629,26802,256,896
14Jul 20, 2023 20:329,963150,360,37782,692,03802,240,512
15Jul 20, 2023 20:329,968146,739,98782,735,77502,248,704