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 7, 2024 13:38GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 13:3800000Error: expected "53692532694414406 ", got "53692526140814406 "
2Jun 7, 2024 13:3600000Error: expected "53691278372254702 ", got "53691277716894702 "
3Jun 7, 2024 13:384,05264,075,66232,616,0001,019,0002,273,280
4Jun 7, 2024 13:384,05863,861,16432,658,0001,020,0002,482,176
5Jun 7, 2024 13:384,07160,550,44631,804,0001,987,0002,273,280
6Jun 7, 2024 13:384,07566,971,93231,833,0001,989,0002,490,368
7Jun 7, 2024 13:384,08064,204,87431,873,0001,992,0002,273,280
8Jun 7, 2024 13:384,08159,364,28930,883,0002,988,0002,494,464
9Jun 7, 2024 13:384,08856,608,31232,935,000998,0002,273,280
10Jun 7, 2024 13:384,08958,936,32431,944,0001,996,0002,273,280
11Jun 7, 2024 13:384,09358,795,80831,974,0001,998,0002,273,280
12Jun 7, 2024 13:384,09861,251,95032,015,0002,000,0002,273,280
13Jun 7, 2024 13:384,10056,476,15431,029,0003,002,0002,289,664
14Jun 7, 2024 13:384,10260,869,22332,046,0002,002,0002,486,272
15Jun 7, 2024 13:384,11257,725,57133,127,0001,003,0002,273,280
16Jun 7, 2024 13:384,13564,285,31732,302,0002,018,0002,338,816
17Jun 7, 2024 13:384,14460,464,83431,359,0003,034,0002,478,080
18Jun 7, 2024 13:384,15556,894,43433,472,0001,014,0002,490,368
19Jun 7, 2024 13:384,19458,413,50832,823,0001,989,0002,482,176
20Jun 7, 2024 13:384,232101,766,13635,123,97802,232,320
21Jun 7, 2024 13:384,24696,928,98735,240,67102,240,512
22Jun 7, 2024 13:374,248113,914,49235,257,03802,236,416
23Jun 7, 2024 13:384,251103,224,48035,279,44602,240,512
24Jun 7, 2024 13:384,263110,918,25035,384,34602,240,512
25Jun 7, 2024 13:384,264119,788,97135,389,49302,240,512
26Jun 7, 2024 13:374,27098,706,93535,438,65902,236,416
27Jun 7, 2024 13:384,27399,933,80035,464,25202,248,704
28Jun 7, 2024 13:384,27997,892,97035,518,75802,232,320
29Jun 7, 2024 13:384,281114,764,94635,533,04802,236,416
30Jun 7, 2024 13:384,300108,878,36435,687,80102,367,488
31Jun 7, 2024 13:374,312123,757,92335,788,27502,236,416
32Jun 7, 2024 13:384,39060,293,78332,389,0004,048,000266,240
33Jun 7, 2024 13:384,43965,421,41132,860,0003,983,000319,488
34Jun 7, 2024 13:384,45262,567,14431,955,0004,993,000167,936
35Jun 7, 2024 13:384,45559,706,14830,981,0005,996,000253,952
36Jun 7, 2024 13:384,46162,782,00032,023,0005,003,000258,048
37Jun 7, 2024 13:384,48457,106,31331,181,0006,035,0002,412,544
38Jun 7, 2024 13:385,05477,723,10039,950,0001,997,0002,273,280