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 listNov 14, 2024 13:41Igor ZyginIgor ZyginScore: 129,940Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 13:41129,9151,110,563,8131,016,332,00061,959,0002,281,472
2Nov 14, 2024 13:41129,9401,105,270,6861,013,534,00064,970,0002,289,664
3Nov 14, 2024 13:41129,9471,102,646,7861,007,591,00070,971,0002,273,280