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 13:48GraceGraceError
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 13:4700000Error: expected "53685630408969817 ", got "53685829035997217 "
2Jun 4, 2024 13:4700000Error: expected "53686405715697091 ", got "53686455765420667 "
3Jun 4, 2024 13:475,05763,297,45940,978,000999,0002,396,160
4Jun 4, 2024 13:475,05874,396,53140,980,000999,0002,396,160
5Jun 4, 2024 13:475,05967,053,24039,992,0001,999,0002,400,256
6Jun 4, 2024 13:485,05962,878,11139,990,0001,999,0002,408,448
7Jun 4, 2024 13:485,06171,203,00440,004,0002,000,0002,273,280
8Jun 4, 2024 13:475,06268,837,97741,014,0001,000,0002,273,280
9Jun 4, 2024 13:485,06472,312,20140,033,0002,001,0002,273,280
10Jun 4, 2024 13:485,06566,620,45840,036,0002,001,0002,273,280
11Jun 4, 2024 13:485,06671,840,60740,044,0002,002,0002,404,352
12Jun 4, 2024 13:475,06968,852,42040,067,0002,003,0002,396,160
13Jun 4, 2024 13:475,06964,094,53041,074,0001,001,0002,273,280
14Jun 4, 2024 13:475,07165,742,71841,088,0001,002,0002,273,280
15Jun 4, 2024 13:475,07171,058,66041,085,0001,002,0002,273,280
16Jun 4, 2024 13:475,07272,672,74140,095,0002,004,0002,400,256
17Jun 4, 2024 13:485,07364,311,58141,103,0001,002,0002,273,280
18Jun 4, 2024 13:475,07364,013,62440,099,0002,004,0002,273,280
19Jun 4, 2024 13:485,07464,713,30341,113,0001,002,0002,273,280
20Jun 4, 2024 13:485,07464,300,57940,113,0002,005,0002,273,280
21Jun 4, 2024 13:475,07464,703,05640,110,0002,005,0002,392,064
22Jun 4, 2024 13:475,07567,417,57341,096,0001,027,0002,273,280
23Jun 4, 2024 13:475,07569,084,59441,123,0001,003,0002,408,448
24Jun 4, 2024 13:475,07571,785,98141,119,0001,002,0002,273,280
25Jun 4, 2024 13:475,07766,471,78040,137,0002,006,0002,273,280
26Jun 4, 2024 13:475,07769,205,90341,136,0001,003,0002,273,280
27Jun 4, 2024 13:475,07869,744,92841,145,0001,003,0002,273,280
28Jun 4, 2024 13:485,08172,199,15940,166,0002,008,0002,273,280
29Jun 4, 2024 13:475,08267,827,25441,175,0001,004,0002,392,064
30Jun 4, 2024 13:485,204110,178,69143,192,55602,277,376
31Jun 4, 2024 13:475,210105,820,52243,244,02202,281,472
32Jun 4, 2024 13:475,210108,804,93443,243,31602,285,568
33Jun 4, 2024 13:475,211104,297,20543,253,25202,285,568
34Jun 4, 2024 13:475,211109,472,43043,254,56602,285,568
35Jun 4, 2024 13:485,213114,329,79343,265,34802,269,184
36Jun 4, 2024 13:475,220125,632,36043,327,37602,285,568
37Jun 4, 2024 13:475,222109,749,32343,340,06402,289,664
38Jun 4, 2024 13:485,226105,372,00043,375,52002,281,472
39Jun 4, 2024 13:475,245114,792,62343,529,52902,277,376
40Jun 4, 2024 13:475,245115,428,62543,533,51702,281,472
41Jun 4, 2024 13:475,255114,822,76043,614,39002,289,664
42Jun 4, 2024 13:476,01679,517,46348,935,000998,0002,273,280
43Jun 4, 2024 13:476,04472,993,87249,165,0001,003,0002,392,064
44Jun 4, 2024 13:476,04874,856,33549,192,0001,003,0002,273,280
45Jun 4, 2024 13:486,06172,382,12050,305,00002,514,944
46Jun 4, 2024 13:476,07174,227,16249,379,0001,007,0002,273,280
47Jun 4, 2024 13:476,09472,709,95649,570,0001,011,0002,514,944
48Jun 4, 2024 13:486,09981,990,81749,612,0001,012,0002,396,160
49Jun 4, 2024 13:486,12579,465,50149,839,000996,0002,273,280
50Jun 4, 2024 13:476,17576,789,06150,247,0001,004,0002,396,160