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 listApr 16, 2024 14:58Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 15:0200000Error: expected "53692050164277156 ", got "53692049908277156 "
2Apr 16, 2024 14:5812,157160,109,269100,903,43202,281,472
3Apr 16, 2024 14:5812,164161,704,630100,961,41202,269,184
4Apr 16, 2024 15:2112,166165,993,717100,976,34802,269,184
5Apr 16, 2024 14:5812,167156,654,076100,985,89402,269,184
6Apr 16, 2024 15:2112,179167,793,001101,086,97702,277,376
7Apr 16, 2024 15:2113,162180,710,441109,243,52902,277,376