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 listAug 13, 2023 21:57sliceteamsliceteamScore: 8,539Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 13, 2023 21:578,49798,190,26870,525,00002,260,992
2Aug 13, 2023 21:578,502101,532,01469,560,0001,008,0002,260,992
3Aug 13, 2023 21:578,50696,512,83469,592,0001,008,0002,260,992
4Aug 13, 2023 21:578,51098,570,25270,629,00002,379,776
5Aug 13, 2023 21:578,51298,908,69869,638,0001,009,0002,392,064
6Aug 13, 2023 21:578,53096,110,26770,797,00002,498,560
7Aug 13, 2023 21:578,53899,019,22869,864,000998,0002,260,992
8Aug 13, 2023 21:578,53992,678,62568,876,0001,996,0002,379,776
9Aug 13, 2023 21:578,547141,998,96770,936,04702,273,280
10Aug 13, 2023 21:578,549145,949,01670,957,89002,273,280
11Aug 13, 2023 21:578,573104,309,52269,150,0002,004,0002,387,968
12Aug 13, 2023 21:578,605131,677,64471,420,56502,256,896
13Aug 13, 2023 21:578,670101,482,20169,961,0001,998,0002,256,896
14Aug 13, 2023 21:578,73095,518,16771,451,0001,006,0002,387,968
15Aug 13, 2023 21:578,802100,626,23871,056,0002,001,0002,523,136