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 listMay 27, 2024 15:03GraceGraceScore: 7,445Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 15:037,06991,640,40857,661,0001,011,0002,265,088
2May 27, 2024 15:037,10081,045,64356,929,0001,997,0002,285,568
3May 27, 2024 15:037,14687,035,32557,299,0002,010,0002,269,184
4May 27, 2024 15:037,14681,628,23458,307,0001,005,0002,285,568
5May 27, 2024 15:037,20483,275,91558,800,000996,0002,269,184
6May 27, 2024 15:047,288129,321,82560,489,52002,301,952
7May 27, 2024 15:037,337125,546,79660,901,20802,293,760
8May 27, 2024 15:047,390131,215,31461,335,48302,289,664
9May 27, 2024 15:037,427136,498,05661,641,40402,293,760
10May 27, 2024 15:047,445126,982,41361,790,45602,297,856
11May 27, 2024 15:038,04792,604,85565,797,000996,0002,379,776
12May 27, 2024 15:038,08393,487,04965,090,0002,002,0002,285,568
13May 27, 2024 15:038,09490,690,30565,173,0002,005,0002,531,328
14May 27, 2024 15:038,10295,359,01666,247,0001,003,0002,285,568
15May 27, 2024 15:038,10596,338,12565,262,0002,008,0002,285,568
16May 27, 2024 15:038,12291,159,69666,403,0001,006,0002,273,280
17May 27, 2024 15:038,13690,641,02866,521,0001,007,0002,387,968
18May 27, 2024 15:038,322127,269,25869,068,73802,301,952