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 13, 2024 00:14sliceteamsliceteamScore: 8,533Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 00:147,49589,764,11859,202,0003,010,0002,387,968
2May 13, 2024 00:147,56693,180,67660,803,0001,993,0002,473,984
3May 13, 2024 00:147,56792,086,01860,811,0001,993,0002,449,408
4May 13, 2024 00:147,62785,796,08662,297,0001,004,0002,461,696
5May 13, 2024 00:147,63690,095,07861,367,0002,012,0002,424,832
6May 13, 2024 00:147,66888,503,22063,644,00002,433,024
7May 13, 2024 00:147,71387,729,29363,019,0001,000,0002,433,024
8May 13, 2024 00:147,76887,928,35264,474,00002,396,160
9May 13, 2024 00:147,80898,772,45761,817,0002,991,0002,453,504
10May 13, 2024 00:148,48596,685,49868,410,0002,012,0002,342,912
11May 13, 2024 00:148,53396,464,38068,829,0001,995,0002,387,968
12May 13, 2024 00:148,59394,243,29070,319,0001,004,0002,400,256
13May 13, 2024 00:148,600102,049,28269,370,0002,010,0002,420,736
14May 13, 2024 00:148,632100,434,12571,643,00002,457,600
15May 13, 2024 00:148,81897,655,35771,186,0002,005,0002,412,544
16May 13, 2024 00:148,827157,168,07273,265,94502,281,472
17May 13, 2024 00:148,83596,909,81470,321,0003,013,0002,420,736
18May 13, 2024 00:148,91296,953,31072,967,000999,0002,412,544
19May 13, 2024 00:148,983106,501,53573,556,0001,007,0002,359,296
20May 13, 2024 00:149,031149,799,45674,958,31802,269,184
21May 13, 2024 00:149,224129,731,29576,561,79602,269,184