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 29, 2024 17:39GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:4000000Error: expected "53690902388231607 ", got "53690902381678007 "
2May 29, 2024 17:3900000Error: expected "53683989885729140 ", got "53683989230369140 "
3May 29, 2024 17:395,93173,269,01547,216,0002,009,0002,387,968
4May 29, 2024 17:395,94074,184,83948,293,0001,006,0002,273,280
5May 29, 2024 17:395,94871,070,32348,365,0001,007,0002,514,944
6May 29, 2024 17:395,94877,063,36348,365,0001,007,0002,273,280
7May 29, 2024 17:395,94970,787,03349,380,00002,273,280
8May 29, 2024 17:395,95171,352,19648,383,0001,007,0002,273,280
9May 29, 2024 17:395,95376,328,46949,406,00002,396,160
10May 29, 2024 17:395,95372,926,98248,398,0001,008,0002,400,256
11May 29, 2024 17:395,95976,830,77148,451,0001,009,0002,400,256
12May 29, 2024 17:395,96072,761,30749,468,00002,408,448
13May 29, 2024 17:395,97980,368,73448,613,0001,012,0002,273,280
14May 29, 2024 17:395,98378,767,58148,642,0001,013,0002,396,160
15May 29, 2024 17:396,00276,177,85849,819,00002,273,280
16May 29, 2024 17:396,00280,064,14447,822,0001,992,0002,396,160
17May 29, 2024 17:396,00374,390,60047,835,0001,993,0002,273,280
18May 29, 2024 17:396,00775,781,43548,864,000997,0002,273,280
19May 29, 2024 17:396,02379,547,93148,994,000999,0002,273,280
20May 29, 2024 17:396,09980,029,01250,621,00002,273,280
21May 29, 2024 17:396,10379,183,67749,638,0001,013,0002,273,280
22May 29, 2024 17:396,12677,223,14548,851,0001,993,0002,273,280
23May 29, 2024 17:396,13877,824,03549,947,000998,0002,387,968
24May 29, 2024 17:396,155120,448,87351,090,45302,277,376
25May 29, 2024 17:396,155128,302,81851,083,24302,277,376
26May 29, 2024 17:396,155112,174,03351,082,81102,297,856
27May 29, 2024 17:396,158129,162,26951,112,09202,289,664
28May 29, 2024 17:396,159127,108,09151,116,27602,281,472
29May 29, 2024 17:396,171130,376,54351,216,41802,293,760
30May 29, 2024 17:396,171114,579,96451,221,03302,285,568
31May 29, 2024 17:396,177121,125,84151,271,76502,281,472
32May 29, 2024 17:396,185116,736,85951,335,40702,281,472