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 28, 2024 12:08Joad NacerJoad NacerScore: 9,173Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 12:089,058153,144,54975,179,96502,273,280
2Apr 28, 2024 12:089,059146,399,69775,187,76702,281,472
3Apr 28, 2024 12:089,059136,846,03475,192,04602,273,280
4Apr 28, 2024 12:089,10198,068,94075,542,00002,285,568
5Apr 28, 2024 12:089,15599,593,35673,985,0001,999,0002,265,088
6Apr 28, 2024 12:089,168100,053,38274,091,0002,002,0002,527,232
7Apr 28, 2024 12:089,171103,946,16475,120,0001,001,0002,273,280
8Apr 28, 2024 12:089,173102,628,98974,129,0002,003,0002,269,184
9Apr 28, 2024 12:089,174103,201,85374,143,0002,003,0002,273,280
10Apr 28, 2024 12:089,181105,048,52274,201,0002,005,0002,265,088
11Apr 28, 2024 12:089,387106,315,81175,912,0001,997,0002,285,568
12Apr 28, 2024 12:0810,457116,136,44185,796,000997,0002,519,040
13Apr 28, 2024 12:0810,474111,478,94184,934,0001,998,0002,359,296
14Apr 28, 2024 12:0810,606117,491,32286,031,0002,000,0002,285,568
15Apr 28, 2024 12:0819,605193,566,307161,723,000998,0002,285,568