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 listOct 13, 2024 23:53Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2024 23:5300000Error: expected "53680342158988215 ", got "53680357987190554 "stderr
2Oct 13, 2024 23:534,31964,745,10533,855,0001,991,0002,535,424
3Oct 13, 2024 23:534,33861,618,35933,007,0003,000,0002,306,048
4Oct 13, 2024 23:534,34958,379,36134,091,0002,005,0002,297,856
5Oct 13, 2024 23:534,47465,324,74136,135,0001,003,0002,297,856
6Oct 13, 2024 23:534,50059,359,78035,328,0002,018,0002,301,952
7Oct 13, 2024 23:534,52966,781,89137,591,00002,387,968
8Oct 13, 2024 23:534,56264,423,21335,874,0001,993,0002,306,048
9Oct 13, 2024 23:534,60459,826,76238,213,00002,306,048
10Oct 13, 2024 23:534,61765,946,34437,312,0001,008,0002,301,952