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 20, 2023 07:11matsuoka-601matsuoka-601Score: 7,054Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2023 07:126,875124,616,05157,062,26702,281,472
2Dec 20, 2023 07:117,025119,633,46258,305,84702,273,280
3Dec 20, 2023 07:117,034124,558,73658,380,04202,293,760
4Dec 20, 2023 07:117,054147,597,34758,549,14502,289,664
5Dec 20, 2023 07:127,096130,938,00458,894,69602,273,280
6Dec 20, 2023 07:127,230124,635,82360,006,55402,289,664