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 listOct 7, 2023 21:26Serge SmirnovSerge SmirnovScore: 44,522Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 21:2744,479425,360,467369,176,48102,273,280
2Oct 7, 2023 21:2744,485426,353,764369,226,25602,285,568
3Oct 7, 2023 21:2644,492430,604,864369,281,42102,293,760
4Oct 7, 2023 21:2644,522439,365,878369,531,58202,273,280
5Oct 7, 2023 21:2644,530438,388,881369,598,57702,285,568
6Oct 7, 2023 21:2744,531429,627,830369,605,15102,285,568