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 listDec 18, 2024 09:01stan agronovstan agronovScore: 267,024Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 09:01266,9432,241,289,7962,134,681,00080,950,0002,322,432
2Dec 18, 2024 09:01267,0242,245,606,1642,127,331,00088,972,0002,355,200
3Dec 18, 2024 09:01267,0692,245,094,0502,121,727,00094,943,0002,322,432