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 listSep 11, 2024 13:15Dmitrii KravchenkoDmitrii KravchenkoScore: 243,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2024 13:15209,5211,772,983,3621,543,138,000195,890,0002,437,120
2Sep 11, 2024 13:15243,8343,645,853,9601,549,927,000473,895,000115,539,968
3Sep 11, 2024 13:15260,1583,830,329,5271,662,402,000496,913,000115,748,864