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 29, 2024 12:24Joad NacerJoad NacerScore: 8,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 12:248,410130,789,55469,799,12702,273,280
2Apr 29, 2024 12:248,432132,365,71369,983,21202,273,280
3Apr 29, 2024 12:248,522147,857,87670,733,75502,269,184
4Apr 29, 2024 12:248,90996,328,18771,946,0001,998,0002,523,136
5Apr 29, 2024 12:248,909101,032,64871,946,0001,998,0002,273,280
6Apr 29, 2024 12:248,91297,698,73771,969,0001,999,0002,273,280
7Apr 29, 2024 12:248,91395,272,36671,977,0001,999,0002,273,280
8Apr 29, 2024 12:248,91396,234,94172,981,000999,0002,531,328
9Apr 29, 2024 12:248,91798,848,87772,009,0002,000,0002,285,568
10Apr 29, 2024 12:248,91994,351,39472,026,0002,000,0002,285,568
11Apr 29, 2024 12:248,92597,134,83672,077,0002,002,0002,285,568
12Apr 29, 2024 12:249,07699,813,40774,324,0001,004,0002,265,088
13Apr 29, 2024 12:249,972113,524,73081,770,000997,0002,514,944
14Apr 29, 2024 12:2410,153107,240,62382,268,0002,006,0002,265,088
15Apr 29, 2024 12:2410,179113,469,86283,479,0001,005,0002,285,568