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:58GraceGraceScore: 4,277Success
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:584,07763,680,52731,846,0001,990,0002,273,280
2Jun 7, 2024 13:584,08354,205,61631,896,0001,993,0002,482,176
3Jun 7, 2024 13:584,08858,161,73831,932,0001,995,0002,490,368
4Jun 7, 2024 13:584,09265,466,11731,965,0001,997,0002,486,272
5Jun 7, 2024 13:584,09759,661,01031,006,0003,000,0002,478,080
6Jun 7, 2024 13:584,10761,434,93633,085,0001,002,0002,494,464
7Jun 7, 2024 13:584,10854,383,92032,088,0002,005,0002,486,272
8Jun 7, 2024 13:584,10957,360,35632,097,0002,006,0002,273,280
9Jun 7, 2024 13:584,12161,487,69932,196,0002,012,0002,490,368
10Jun 7, 2024 13:584,12557,469,92231,220,0003,021,0002,519,040
11Jun 7, 2024 13:584,20065,109,38631,871,0002,987,0002,412,544
12Jun 7, 2024 13:584,274103,023,41335,474,98602,248,704
13Jun 7, 2024 13:584,27758,682,18333,467,0002,028,0002,273,280
14Jun 7, 2024 13:584,286102,537,67835,575,87902,248,704
15Jun 7, 2024 13:584,304109,198,99735,725,76002,228,224
16Jun 7, 2024 13:584,309109,395,00235,766,75802,240,512
17Jun 7, 2024 13:584,315114,532,98935,813,19802,240,512
18Jun 7, 2024 13:584,317119,967,84535,834,79702,244,608
19Jun 7, 2024 13:584,338101,333,30736,004,35202,244,608
20Jun 7, 2024 13:584,346102,845,64236,073,49702,232,320
21Jun 7, 2024 13:584,365110,682,18936,232,25902,363,392
22Jun 7, 2024 13:584,39889,634,22836,505,63902,240,512
23Jun 7, 2024 13:584,407110,311,09536,579,06802,236,416
24Jun 7, 2024 13:584,449108,412,44636,929,77402,232,320