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 listJun 4, 2024 04:15GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 04:1600000Error: expected "53685761676614166 ", got "53685838337867660 "
2Jun 4, 2024 04:155,10764,950,13342,384,00002,273,280
3Jun 4, 2024 04:165,10763,049,15442,392,00002,273,280
4Jun 4, 2024 04:165,11162,179,88341,410,0001,010,0002,404,352
5Jun 4, 2024 04:165,11170,130,97842,421,00002,392,064
6Jun 4, 2024 04:165,11264,333,97341,423,0001,010,0002,396,160
7Jun 4, 2024 04:155,11365,781,70941,426,0001,010,0002,408,448
8Jun 4, 2024 04:155,11464,936,87542,444,00002,396,160
9Jun 4, 2024 04:155,11669,606,31342,461,00002,400,256
10Jun 4, 2024 04:155,12167,249,16242,506,00002,396,160
11Jun 4, 2024 04:165,12361,275,50741,508,0001,012,0002,400,256
12Jun 4, 2024 04:165,12369,879,09142,521,00002,273,280
13Jun 4, 2024 04:165,12364,320,47141,505,0001,012,0002,273,280
14Jun 4, 2024 04:165,12464,877,49641,515,0001,012,0002,269,184
15Jun 4, 2024 04:165,12567,645,62542,537,00002,273,280
16Jun 4, 2024 04:155,13470,091,53441,601,0001,014,0002,273,280
17Jun 4, 2024 04:155,14066,615,07041,674,000992,0002,396,160
18Jun 4, 2024 04:155,14270,682,32842,679,00002,273,280
19Jun 4, 2024 04:155,14671,928,06841,693,0001,016,0002,273,280
20Jun 4, 2024 04:165,298109,358,76943,977,20102,277,376
21Jun 4, 2024 04:155,300113,269,08043,987,82002,285,568
22Jun 4, 2024 04:155,304104,754,67944,022,43602,285,568
23Jun 4, 2024 04:165,306102,106,77844,037,57602,269,184
24Jun 4, 2024 04:165,307106,405,13444,046,17902,289,664
25Jun 4, 2024 04:165,308110,467,17844,058,06702,277,376
26Jun 4, 2024 04:165,310102,422,15544,072,54502,285,568
27Jun 4, 2024 04:155,311121,633,64244,083,09902,285,568
28Jun 4, 2024 04:155,313109,068,17744,098,88502,277,376
29Jun 4, 2024 04:155,313111,837,32444,099,51802,281,472
30Jun 4, 2024 04:165,314106,057,31444,103,08802,285,568
31Jun 4, 2024 04:155,315109,854,78144,113,38502,293,760
32Jun 4, 2024 04:165,319107,256,85344,148,47902,281,472
33Jun 4, 2024 04:165,321102,947,03244,163,47902,285,568
34Jun 4, 2024 04:165,325103,716,88944,195,24702,277,376
35Jun 4, 2024 04:165,334110,767,96844,274,72602,289,664
36Jun 4, 2024 04:155,352108,526,40744,424,59802,293,760
37Jun 4, 2024 04:155,354103,002,51044,437,03402,289,664
38Jun 4, 2024 04:155,363111,954,11444,509,76902,293,760
39Jun 4, 2024 04:165,363112,317,39144,511,08402,289,664
40Jun 4, 2024 04:165,363111,194,74044,514,23902,289,664
41Jun 4, 2024 04:165,93872,168,48247,276,0002,011,0002,273,280
42Jun 4, 2024 04:165,94573,180,49849,342,00002,273,280
43Jun 4, 2024 04:155,96473,884,57448,488,0001,010,0002,273,280
44Jun 4, 2024 04:155,97778,247,73748,600,0001,012,0002,273,280
45Jun 4, 2024 04:155,97880,745,52848,602,0001,012,0002,273,280
46Jun 4, 2024 04:166,04378,511,11448,150,0002,006,0002,273,280