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 listApr 18, 2024 14:08Matt StuchlikMatt StuchlikScore: 10,434Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 14:0810,132106,374,48179,091,0005,005,0002,486,272
2Apr 18, 2024 14:0810,272107,997,45182,249,0003,009,0002,486,272
3Apr 18, 2024 14:0810,278107,379,54783,301,0002,007,0002,486,272
4Apr 18, 2024 14:0810,283153,292,84985,348,11302,228,224
5Apr 18, 2024 14:0810,351153,684,06085,914,59502,220,032
6Apr 18, 2024 14:0810,378149,671,82786,136,16202,224,128
7Apr 18, 2024 14:0810,434115,616,40585,595,0001,007,0002,285,568
8Apr 18, 2024 14:0810,457114,339,59385,796,000997,0002,490,368
9Apr 18, 2024 14:0810,457113,624,49284,795,0001,995,0002,285,568
10Apr 18, 2024 14:0810,474110,708,90083,935,0002,997,0002,482,176
11Apr 18, 2024 14:0810,484115,869,73884,014,0003,000,0002,490,368
12Apr 18, 2024 14:0810,499114,066,51084,136,0003,004,0002,486,272