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 listJun 5, 2024 11:48matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 11:4800000Error: expected "53690604400782609 ", got "53690602008514921"
2Jun 5, 2024 11:4800000Error: expected "53692074014108545 ", got "62684874956070727"
3Jun 5, 2024 11:4800000Error: expected "53690769978324114 ", got "63545701488183634"
4Jun 5, 2024 11:4800000Error: expected "53689493890739417 ", got "89949277320645409"
5Jun 5, 2024 11:4900000Error: No answer to stdout. Died or killed?
6Jun 5, 2024 11:4900000Error: No answer to stdout. Died or killed?
7Jun 5, 2024 11:4900000Error: expected "53691669232914780 ", got "53691666840647092"
8Jun 5, 2024 11:5000000Error: expected "53689456438231702 ", got "92154815047201336"
9Jun 5, 2024 11:506,310108,922,08052,373,57602,236,416
10Jun 5, 2024 11:506,314132,560,78552,409,40702,367,488
11Jun 5, 2024 11:506,327120,893,50652,513,47902,240,512