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 3, 2024 04:56GraceGraceScore: 5,243Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 04:565,21567,530,23243,282,00002,404,352
2Jun 3, 2024 04:565,21872,314,08742,304,0001,007,0002,273,280
3Jun 3, 2024 04:565,21964,649,09142,310,0001,007,0002,400,256
4Jun 3, 2024 04:565,22669,284,81542,364,0001,008,0002,273,280
5Jun 3, 2024 04:565,22664,981,12142,367,0001,008,0002,273,280
6Jun 3, 2024 04:565,22869,364,94141,422,0001,972,0002,273,280
7Jun 3, 2024 04:565,22966,234,28842,390,0001,009,0002,273,280
8Jun 3, 2024 04:565,23267,381,38642,417,0001,009,0002,273,280
9Jun 3, 2024 04:565,23266,602,20743,429,00002,392,064
10Jun 3, 2024 04:565,23466,365,79742,435,0001,010,0002,273,280
11Jun 3, 2024 04:565,23565,319,19942,438,0001,010,0002,273,280
12Jun 3, 2024 04:565,23671,080,58742,451,0001,010,0002,273,280
13Jun 3, 2024 04:565,23866,196,20542,468,0001,011,0002,273,280
14Jun 3, 2024 04:565,24366,002,80543,515,00002,273,280
15Jun 3, 2024 04:565,24669,517,85143,540,00002,400,256
16Jun 3, 2024 04:565,24767,999,57642,542,0001,012,0002,400,256
17Jun 3, 2024 04:565,24768,181,10542,534,0001,012,0002,273,280
18Jun 3, 2024 04:565,25172,537,04642,574,0001,013,0002,404,352
19Jun 3, 2024 04:565,30370,091,17042,017,0002,000,0002,408,448
20Jun 3, 2024 04:565,34165,275,09643,321,0001,007,0002,387,968
21Jun 3, 2024 04:565,35770,029,38743,456,0001,010,0002,404,352
22Jun 3, 2024 04:565,445115,292,12045,192,40602,285,568
23Jun 3, 2024 04:565,445112,975,04745,190,78202,281,472
24Jun 3, 2024 04:565,450116,988,86645,233,07502,293,760
25Jun 3, 2024 04:565,457112,345,82345,292,23702,285,568
26Jun 3, 2024 04:565,461118,106,22245,328,32902,289,664
27Jun 3, 2024 04:565,721117,123,73847,483,92702,285,568