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 29, 2024 15:59GraceGraceScore: 6,384Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 15:596,22079,253,26249,598,0002,024,0002,428,928
2May 29, 2024 15:596,26175,162,26647,973,0003,997,0002,527,232
3May 29, 2024 15:596,31775,463,42849,407,0003,024,0002,428,928
4May 29, 2024 15:596,36385,138,56849,825,0002,989,0002,486,272
5May 29, 2024 15:596,37878,261,86148,944,0003,995,0002,289,664
6May 29, 2024 15:596,37978,269,16449,946,0002,996,0002,433,024
7May 29, 2024 15:596,38076,695,88848,960,0003,996,0002,486,272
8May 29, 2024 15:596,38477,673,18749,989,0002,999,0002,433,024
9May 29, 2024 15:596,39777,761,34049,089,0004,007,0002,437,120
10May 29, 2024 15:596,39774,575,66349,087,0004,007,0002,420,736
11May 29, 2024 15:596,39879,890,24150,095,0003,005,0002,494,464
12May 29, 2024 15:596,43283,189,18150,361,0003,021,0002,453,504
13May 29, 2024 15:596,599121,602,17154,768,00802,301,952
14May 29, 2024 15:596,615122,849,73854,906,30802,187,264
15May 29, 2024 15:596,653115,432,30755,220,18002,183,168