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 listMay 31, 2024 05:01GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 05:0400000Error: expected "53682615115128921 ", got "53682614459768921 "
2May 31, 2024 05:0400000Error: expected "53683007396563717 ", got "53683007396498181 "
3May 31, 2024 05:0400000Error: expected "53684418555926489 ", got "53684418555860953 "
4May 31, 2024 05:0300000Error: expected "53688463232361312 ", got "53688463225807712 "
5May 31, 2024 05:0300000Error: expected "53687810952099598 ", got "53687810296739598 "
6May 31, 2024 05:0100000Error: expected "53683535565975250 ", got "53683534910615250 "
7May 31, 2024 05:015,511110,185,75945,738,68902,281,472
8May 31, 2024 05:015,512109,849,15045,751,18202,289,664
9May 31, 2024 05:015,513103,686,14745,757,12502,285,568
10May 31, 2024 05:035,516109,260,76245,781,86502,252,800
11May 31, 2024 05:045,51899,710,00845,799,47202,297,856
12May 31, 2024 05:045,523110,806,45345,842,87702,285,568
13May 31, 2024 05:015,524100,441,97345,845,09902,285,568
14May 31, 2024 05:045,525112,374,11445,857,46202,281,472
15May 31, 2024 05:015,527103,757,12045,872,52402,285,568
16May 31, 2024 05:045,53396,199,90845,922,53002,277,376
17May 31, 2024 05:035,540122,037,88245,981,30202,293,760
18May 31, 2024 05:015,54297,094,08745,998,95702,285,568
19May 31, 2024 05:015,547123,570,68546,035,97602,281,472
20May 31, 2024 05:045,595111,765,74446,437,99102,285,568
21May 31, 2024 05:035,611120,018,62046,568,91602,281,472
22May 31, 2024 05:045,649114,208,25946,889,62802,277,376
23May 31, 2024 05:015,674122,312,64847,090,44802,277,376
24May 31, 2024 05:016,010115,015,32949,885,30202,293,760