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 listJun 7, 2024 17:44GraceGraceScore: 41,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 17:4441,591405,811,291345,203,82102,273,280
2Jun 7, 2024 17:4441,660410,865,831345,775,51602,273,280
3Jun 7, 2024 17:4441,697403,089,860346,087,87602,273,280
4Jun 7, 2024 17:4441,755414,274,000346,564,02902,265,088
5Jun 7, 2024 17:4441,795415,085,455346,897,05402,269,184
6Jun 7, 2024 17:4441,821412,374,608347,111,68802,269,184
7Jun 7, 2024 17:4441,844420,804,972347,302,89002,277,376
8Jun 7, 2024 17:4441,870423,626,111347,518,05202,265,088
9Jun 7, 2024 17:4441,919404,979,711347,929,29602,277,376
10Jun 7, 2024 17:4442,002404,143,780348,615,54902,269,184
11Jun 7, 2024 17:4442,382411,706,147351,771,14502,273,280
12Jun 7, 2024 17:4442,722420,010,072354,591,25702,404,352