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 listJul 29, 2022 17:45Eugene ZhydzetskiEugene ZhydzetskiScore: 222,879Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 29, 2022 17:45222,6731,909,634,6161,848,184,81502,244,608
2Aug 1, 2022 20:01222,7941,909,139,3051,849,194,20002,248,704
3Aug 1, 2022 20:01222,8181,913,533,4161,849,389,88502,248,704
4Aug 1, 2022 20:01222,8791,914,844,3131,849,897,50702,244,608
5Jul 29, 2022 17:45222,8931,921,453,2101,850,012,43302,240,512
6Jul 29, 2022 17:45222,9491,906,911,3571,850,473,07302,240,512