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 13:52Matt StuchlikMatt StuchlikScore: 28,288Success
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 13:5220,547233,461,308170,537,10302,228,224
2Apr 18, 2024 13:5220,665233,347,073171,518,30902,240,512
3Apr 18, 2024 13:5227,483295,168,618228,107,85402,232,320
4Apr 18, 2024 13:5228,159265,536,831230,722,0002,996,0002,285,568
5Apr 18, 2024 13:5228,233261,762,249233,334,0001,001,0002,486,272
6Apr 18, 2024 13:5228,258264,357,440233,536,0001,002,0002,277,376
7Apr 18, 2024 13:5228,288262,608,755231,793,0002,997,0002,285,568
8Apr 18, 2024 13:5228,306258,050,167232,939,0001,999,0002,478,080
9Apr 18, 2024 13:5228,312260,049,610231,991,0002,999,0002,486,272
10Apr 18, 2024 13:5228,341257,386,763231,229,0004,003,0002,285,568
11Apr 18, 2024 13:5228,343264,583,730233,257,0001,993,0002,482,176
12Apr 18, 2024 13:5228,344260,343,000232,256,0003,003,0002,285,568