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 30, 2024 19:32zielajzielajScore: 3,870Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2024 19:323,79750,242,09331,514,00002,289,664
2Nov 30, 2024 19:323,79951,589,51431,529,00002,297,856
3Nov 30, 2024 19:323,80150,866,15530,528,0001,017,0002,469,888
4Nov 30, 2024 19:323,87055,783,66431,117,0001,003,0002,519,040
5Nov 30, 2024 19:323,92258,501,43331,535,0001,017,0002,519,040
6Nov 30, 2024 19:323,99551,498,44032,156,0001,004,0002,347,008