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 listApr 26, 2024 19:05Joad NacerJoad NacerScore: 28,299Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 19:0528,164303,318,874233,758,52902,273,280
2Apr 26, 2024 19:0528,166303,343,278233,778,76002,260,992
3Apr 26, 2024 19:0528,267266,141,615233,613,0001,002,0002,281,472
4Apr 26, 2024 19:0528,287257,078,201232,787,0001,998,0002,281,472
5Apr 26, 2024 19:0528,292261,200,554232,824,0001,998,0002,371,584
6Apr 26, 2024 19:0528,295258,002,320232,852,0001,998,0002,265,088
7Apr 26, 2024 19:0528,299258,603,811233,884,000999,0002,523,136
8Apr 26, 2024 19:0528,303257,526,605232,917,0001,999,0002,523,136
9Apr 26, 2024 19:0528,306265,407,597232,943,0001,999,0002,514,944
10Apr 26, 2024 19:0528,319263,143,175234,047,0001,000,0002,277,376
11Apr 26, 2024 19:0528,324260,071,619233,087,0002,000,0002,281,472
12Apr 26, 2024 19:0528,351300,729,653235,312,22202,273,280