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 26, 2024 09:57E SequeiraE SequeiraScore: 19,627Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 09:5819,613230,590,883162,786,48602,232,320
2Apr 26, 2024 09:5719,615231,182,349162,802,31502,232,320
3Apr 26, 2024 09:5819,616227,798,796162,815,06702,220,032
4Apr 26, 2024 09:5819,627234,836,978162,900,31102,215,936
5Apr 26, 2024 09:5719,630231,933,003162,927,98102,232,320
6Apr 26, 2024 09:5719,637227,320,623162,986,27002,228,224