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 06:16GraceGraceError
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 06:1500000Error: expected "53685168489366661 ", got "53685297053395946 "
2Jun 4, 2024 06:165,13468,929,88141,602,0001,014,0002,396,160
3Jun 4, 2024 06:165,13570,396,33142,621,00002,273,280
4Jun 4, 2024 06:165,13770,486,02441,626,0001,015,0002,273,280
5Jun 4, 2024 06:165,13768,659,39542,636,00002,400,256
6Jun 4, 2024 06:165,14269,408,64841,660,0001,016,0002,400,256
7Jun 4, 2024 06:165,15872,390,23740,824,0001,991,0002,273,280
8Jun 4, 2024 06:165,16072,650,06841,831,000995,0002,392,064
9Jun 4, 2024 06:165,16168,640,37541,840,000996,0002,273,280
10Jun 4, 2024 06:165,16268,324,57641,851,000996,0002,265,088
11Jun 4, 2024 06:165,335133,247,38244,279,45202,289,664
12Jun 4, 2024 06:165,343100,980,62144,347,21202,285,568
13Jun 4, 2024 06:165,355104,421,19144,442,44602,285,568
14Jun 4, 2024 06:165,355109,036,41744,447,44902,289,664
15Jun 4, 2024 06:165,382101,713,19244,670,83702,293,760
16Jun 4, 2024 06:165,534120,572,40645,934,51202,281,472
17Jun 4, 2024 06:166,43980,323,80252,438,0001,008,0002,273,280
18Jun 4, 2024 06:166,45178,533,20853,547,00002,273,280
19Jun 4, 2024 06:166,51477,836,94653,069,0001,001,0002,400,256