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 18:34GraceGraceError
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 18:3400000Error: expected "53686312251569310 ", got "53686332332931311 "
2Jun 4, 2024 18:344,92963,389,03538,916,0001,995,0002,273,280
3Jun 4, 2024 18:344,93063,537,58539,925,000998,0002,273,280
4Jun 4, 2024 18:344,93166,833,56038,931,0001,996,0002,273,280
5Jun 4, 2024 18:344,93165,887,96638,931,0001,996,0002,400,256
6Jun 4, 2024 18:344,93161,093,65338,932,0001,996,0002,404,352
7Jun 4, 2024 18:344,93367,672,51738,947,0001,997,0002,396,160
8Jun 4, 2024 18:344,93462,807,85139,958,000998,0002,273,280
9Jun 4, 2024 18:344,93562,680,26238,963,0001,998,0002,273,280
10Jun 4, 2024 18:344,94660,255,83339,047,0002,002,0002,273,280
11Jun 4, 2024 18:345,012108,205,88841,599,57302,281,472
12Jun 4, 2024 18:345,014106,089,58441,619,74702,285,568
13Jun 4, 2024 18:345,016110,968,43841,634,76202,285,568
14Jun 4, 2024 18:345,018104,291,61541,648,73602,400,256
15Jun 4, 2024 18:345,01999,051,56041,658,98402,277,376
16Jun 4, 2024 18:345,02093,924,00241,661,95402,281,472
17Jun 4, 2024 18:345,025107,829,06241,706,14002,285,568
18Jun 4, 2024 18:345,047107,083,62941,893,50402,277,376
19Jun 4, 2024 18:345,155123,125,74742,784,02702,289,664
20Jun 4, 2024 18:345,87980,548,54247,800,000995,0002,265,088
21Jun 4, 2024 18:345,88475,274,36046,845,0001,993,0002,514,944
22Jun 4, 2024 18:345,90976,604,74347,046,0002,001,0002,400,256