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 31, 2024 13:48GraceGraceScore: 5,237Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 13:485,18365,700,78941,016,0002,000,0002,408,448
2May 31, 2024 13:485,18464,668,01241,026,0002,001,0002,400,256
3May 31, 2024 13:485,19065,591,29842,080,0001,001,0002,273,280
4May 31, 2024 13:485,19070,495,16642,075,0001,001,0002,273,280
5May 31, 2024 13:485,19273,423,10341,093,0002,004,0002,396,160
6May 31, 2024 13:485,19269,948,33742,093,0001,002,0002,396,160
7May 31, 2024 13:485,19467,923,36141,109,0002,005,0002,396,160
8May 31, 2024 13:485,19767,058,25841,126,0002,006,0002,396,160
9May 31, 2024 13:485,19866,378,49241,139,0002,006,0002,498,560
10May 31, 2024 13:485,20066,196,33241,151,0002,007,0002,396,160
11May 31, 2024 13:485,20268,642,49841,172,0002,008,0002,273,280
12May 31, 2024 13:485,20369,557,88641,181,0002,008,0002,273,280
13May 31, 2024 13:485,20561,983,44141,190,0002,009,0002,273,280
14May 31, 2024 13:485,20668,615,52641,201,0002,009,0002,273,280
15May 31, 2024 13:485,21167,082,79441,240,0002,011,0002,273,280
16May 31, 2024 13:485,21271,564,25341,249,0002,012,0002,400,256
17May 31, 2024 13:485,21268,511,17141,246,0002,012,0002,396,160
18May 31, 2024 13:485,21276,033,09341,246,0002,012,0002,273,280
19May 31, 2024 13:485,21768,103,08742,294,0001,007,0002,273,280
20May 31, 2024 13:485,21964,208,08542,311,0001,007,0002,273,280
21May 31, 2024 13:485,21965,420,25843,321,00002,273,280
22May 31, 2024 13:485,22763,540,64442,372,0001,008,0002,273,280
23May 31, 2024 13:485,22768,375,76843,382,00002,273,280
24May 31, 2024 13:485,23468,581,38342,433,0001,010,0002,396,160
25May 31, 2024 13:485,23765,349,20743,468,00002,404,352
26May 31, 2024 13:485,24166,645,31242,487,0001,011,0002,400,256
27May 31, 2024 13:485,24366,749,95042,525,000988,0002,400,256
28May 31, 2024 13:485,24466,033,35942,510,0001,012,0002,273,280
29May 31, 2024 13:485,24567,265,71642,520,0001,012,0002,273,280
30May 31, 2024 13:485,24772,449,53841,575,0001,979,0002,404,352
31May 31, 2024 13:485,25071,387,89742,558,0001,013,0002,400,256
32May 31, 2024 13:485,25572,781,99942,604,0001,014,0002,273,280
33May 31, 2024 13:485,28068,714,04842,827,000995,0002,273,280
34May 31, 2024 13:485,30879,143,83843,055,0001,001,0002,400,256
35May 31, 2024 13:485,34970,913,85244,393,00002,396,160
36May 31, 2024 13:485,36171,481,01043,488,0001,011,0002,273,280
37May 31, 2024 13:485,410107,958,51944,905,36602,285,568
38May 31, 2024 13:485,412109,571,10044,923,72002,293,760
39May 31, 2024 13:485,427108,068,74845,046,97502,289,664
40May 31, 2024 13:485,427116,963,44545,041,67702,281,472
41May 31, 2024 13:485,430103,315,47345,071,01002,277,376
42May 31, 2024 13:485,439107,552,51345,142,51602,285,568
43May 31, 2024 13:485,440106,603,07645,155,72402,285,568
44May 31, 2024 13:485,442103,148,87845,172,66202,285,568
45May 31, 2024 13:485,456116,217,86845,286,54602,277,376
46May 31, 2024 13:485,45798,562,98145,296,83602,277,376
47May 31, 2024 13:485,483108,007,27445,505,73002,277,376
48May 31, 2024 13:485,518123,621,52845,800,46402,285,568