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 07:05GraceGraceError
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 07:0500000Error: expected "53680367318063681 ", got "53680367292463681 "
2Jun 4, 2024 07:065,13166,545,97542,591,00002,273,280
3Jun 4, 2024 07:065,13772,566,82841,626,0001,015,0002,400,256
4Jun 4, 2024 07:065,13771,580,02241,621,0001,015,0002,273,280
5Jun 4, 2024 07:065,14072,098,21341,651,0001,015,0002,273,280
6Jun 4, 2024 07:065,15968,250,20141,823,000995,0002,404,352
7Jun 4, 2024 07:065,16067,885,00340,839,0001,992,0002,404,352
8Jun 4, 2024 07:065,16070,516,13041,831,000995,0002,273,280
9Jun 4, 2024 07:065,16168,649,03240,841,0001,992,0002,400,256
10Jun 4, 2024 07:065,16274,962,77541,848,000996,0002,273,280
11Jun 4, 2024 07:065,16668,047,80740,882,0001,994,0002,273,280
12Jun 4, 2024 07:065,16664,170,98840,881,0001,994,0002,273,280
13Jun 4, 2024 07:065,16869,159,87541,899,000997,0002,404,352
14Jun 4, 2024 07:065,16866,236,63240,897,0001,994,0002,404,352
15Jun 4, 2024 07:065,17067,299,54540,917,0001,995,0002,408,448
16Jun 4, 2024 07:065,17366,851,69341,935,000998,0002,404,352
17Jun 4, 2024 07:065,18764,704,37541,051,0002,002,0002,273,280
18Jun 4, 2024 07:065,19065,999,63541,076,0002,003,0002,404,352
19Jun 4, 2024 07:065,20965,743,68541,222,0002,010,0002,273,280
20Jun 4, 2024 07:055,279119,733,82243,817,53902,293,760
21Jun 4, 2024 07:065,279100,072,55743,813,13802,289,664
22Jun 4, 2024 07:065,284104,205,94543,860,29702,293,760
23Jun 4, 2024 07:055,288108,540,99943,890,71702,289,664
24Jun 4, 2024 07:065,291114,241,81243,918,52102,289,664
25Jun 4, 2024 07:065,292103,534,08043,924,97602,281,472
26Jun 4, 2024 07:065,317107,336,34044,128,81602,285,568
27Jun 4, 2024 07:055,321105,591,66944,167,22602,281,472
28Jun 4, 2024 07:065,326127,732,49044,209,28402,285,568