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 4, 2024 13:39matsuoka-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 4, 2024 13:3900000Error: expected "53691963685125554 ", got "98278125760980937 "
2Jun 4, 2024 13:3900000Error: expected "53687983566038845 ", got "70852138437492348 "
3Jun 4, 2024 13:3900000Error: expected "53689666629423710 ", got "146237144906001200 "
4Jun 5, 2024 04:4700000Error: expected "53690081318844923 ", got "100952541590426033 "
5Jun 5, 2024 04:4700000Error: expected "53692415967787237 ", got "99614701799186792 "
6Jun 5, 2024 04:4800000Error: expected "53691406008892383 ", got "141289342293440543 "
7Jun 5, 2024 04:4800000Error: expected "53692406405012242 ", got "145092430402510626 "
8Jun 5, 2024 04:4800000Error: expected "53688321330054273 ", got "91477681309561217 "
9Jun 5, 2024 04:4900000Error: expected "53692721171016931 ", got "138699984499535442 "
10Jun 5, 2024 04:4900000Error: expected "53689689004782690 ", got "90147804168185685 "
11Jun 5, 2024 04:4900000Error: expected "53691606878627673 ", got "123434602901147150 "
12Jun 5, 2024 04:5000000Error: expected "53692042741621443 ", got "138593924755156007 "
13Jun 4, 2024 13:406,193114,865,53151,405,76702,375,680
14Jun 4, 2024 13:406,211112,923,28251,553,23902,248,704
15Jun 4, 2024 13:406,239138,820,70851,786,05102,244,608