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:36GraceGraceError
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:3600000Error: expected "53687440196530301 ", got "53687451256765089 "
2Jun 4, 2024 13:365,09663,653,21940,281,0002,014,0002,400,256
3Jun 4, 2024 13:365,09967,968,89741,311,0001,007,0002,273,280
4Jun 4, 2024 13:365,10270,051,06841,339,0001,008,0002,273,280
5Jun 4, 2024 13:365,10264,416,73041,340,0001,008,0002,404,352
6Jun 4, 2024 13:365,10364,646,77641,344,0001,008,0002,273,280
7Jun 4, 2024 13:365,10563,284,92641,362,0001,008,0002,273,280
8Jun 4, 2024 13:365,10665,895,42941,369,0001,009,0002,400,256
9Jun 4, 2024 13:365,10665,286,58740,362,0002,018,0002,404,352
10Jun 4, 2024 13:365,11765,569,33642,473,00002,273,280
11Jun 4, 2024 13:365,11863,516,39142,483,00002,273,280
12Jun 4, 2024 13:365,12464,207,36341,521,0001,012,0002,396,160
13Jun 4, 2024 13:365,13074,980,75241,568,0001,013,0002,273,280
14Jun 4, 2024 13:365,13369,709,90041,592,0001,014,0002,273,280
15Jun 4, 2024 13:365,13368,974,11941,590,0001,014,0002,400,256
16Jun 4, 2024 13:365,13575,193,25941,607,0001,014,0002,400,256
17Jun 4, 2024 13:365,13673,961,94841,614,0001,014,0002,392,064
18Jun 4, 2024 13:365,13869,395,01841,631,0001,015,0002,273,280
19Jun 4, 2024 13:365,13868,239,99541,630,0001,015,0002,273,280
20Jun 4, 2024 13:365,14068,495,97542,659,00002,400,256
21Jun 4, 2024 13:365,14472,064,37542,692,00002,273,280
22Jun 4, 2024 13:365,15870,272,16640,820,0001,991,0002,273,280
23Jun 4, 2024 13:365,16073,822,15842,824,00002,400,256
24Jun 4, 2024 13:365,16175,733,01542,837,00002,273,280
25Jun 4, 2024 13:365,16168,687,35241,842,000996,0002,404,352
26Jun 4, 2024 13:365,19272,683,29343,095,00002,273,280
27Jun 4, 2024 13:365,19764,706,61442,129,0001,003,0002,273,280
28Jun 4, 2024 13:365,21463,128,35741,266,0002,012,0002,273,280
29Jun 4, 2024 13:365,240106,690,25443,488,26802,289,664
30Jun 4, 2024 13:365,244124,773,45943,524,73102,281,472
31Jun 4, 2024 13:365,245101,311,54943,536,73402,277,376
32Jun 4, 2024 13:365,246129,299,46043,545,91402,285,568
33Jun 4, 2024 13:365,251111,696,54043,584,12902,285,568
34Jun 4, 2024 13:365,251106,117,29543,580,35502,277,376
35Jun 4, 2024 13:365,261106,750,36343,667,98802,281,472
36Jun 4, 2024 13:365,264108,817,13443,687,42902,285,568
37Jun 4, 2024 13:365,373108,897,21844,595,90902,297,856
38Jun 4, 2024 13:366,09475,481,43449,572,0001,011,0002,506,752
39Jun 4, 2024 13:366,12079,890,92149,804,000996,0002,273,280
40Jun 4, 2024 13:366,12475,514,08348,837,0001,993,0002,273,280
41Jun 4, 2024 13:366,12680,499,65748,853,0001,994,0002,400,256
42Jun 4, 2024 13:366,15076,100,78849,042,0002,001,0002,404,352
43Jun 4, 2024 13:366,18277,551,44350,308,0001,006,0002,273,280
44Jun 4, 2024 13:366,18675,505,97151,340,00002,273,280
45Jun 4, 2024 13:366,20977,187,11550,546,000991,0002,273,280
46Jun 4, 2024 13:366,24477,824,96049,834,0001,993,0002,383,872