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:09GraceGraceScore: 4,301Success
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:094,09164,618,11830,963,0002,996,0002,486,272
2Jun 7, 2024 13:094,10957,147,10632,101,0002,006,0002,273,280
3Jun 7, 2024 13:094,11758,228,59131,158,0003,015,0002,490,368
4Jun 7, 2024 13:094,14057,441,46332,344,0002,021,0002,494,464
5Jun 7, 2024 13:094,14160,670,29831,341,0003,033,0002,273,280
6Jun 7, 2024 13:094,14757,542,26931,387,0003,037,0002,314,240
7Jun 7, 2024 13:094,15560,733,89032,459,0002,028,0002,273,280
8Jun 7, 2024 13:094,16063,558,42833,539,000986,0002,273,280
9Jun 7, 2024 13:094,16358,033,55032,524,0002,032,0002,351,104
10Jun 7, 2024 13:094,23458,627,92332,129,0003,012,000200,704
11Jun 7, 2024 13:094,25755,053,88531,294,0004,038,000352,256
12Jun 7, 2024 13:104,28692,687,59735,573,77402,244,608
13Jun 7, 2024 13:094,301103,807,90135,701,11802,252,800
14Jun 7, 2024 13:094,310104,346,07535,772,92802,367,488
15Jun 7, 2024 13:104,312107,781,22835,790,41002,232,320
16Jun 7, 2024 13:094,31399,317,89635,798,28702,236,416
17Jun 7, 2024 13:094,313103,960,01335,794,40302,236,416
18Jun 7, 2024 13:094,332116,000,67435,957,23402,240,512
19Jun 7, 2024 13:094,336114,350,75735,986,30502,240,512
20Jun 7, 2024 13:094,33661,336,13432,988,0002,998,000258,048
21Jun 7, 2024 13:094,362111,560,17736,205,37002,244,608
22Jun 7, 2024 13:094,375112,971,33736,314,62302,232,320
23Jun 7, 2024 13:104,380108,191,28036,352,63202,244,608
24Jun 7, 2024 13:094,431103,963,96836,776,34802,232,320