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 listApr 30, 2024 12:40Anoushk KharangateAnoushk KharangateScore: 49,415Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 12:4148,432468,903,847401,984,28102,293,760
2Apr 30, 2024 12:4148,452471,258,478402,148,80502,174,976
3Apr 30, 2024 12:4148,519466,182,105402,704,98302,306,048
4Apr 30, 2024 12:3949,354485,332,532409,638,23302,301,952
5Apr 30, 2024 12:3749,357474,028,093409,662,19102,179,072
6Apr 30, 2024 12:4049,391479,817,804409,945,38802,174,976
7Apr 30, 2024 12:3949,405469,419,027410,059,97002,179,072
8Apr 30, 2024 12:3949,406471,612,836410,066,42002,179,072
9Apr 30, 2024 12:3949,411472,251,041410,110,90602,174,976
10Apr 30, 2024 12:3749,415468,649,866410,147,12602,179,072
11Apr 30, 2024 12:3949,422471,175,754410,203,33902,297,856
12Apr 30, 2024 12:3949,445467,281,084410,394,99002,301,952
13Apr 30, 2024 12:3949,450469,723,951410,433,13202,297,856
14Apr 30, 2024 12:3949,452471,737,524410,448,19302,174,976
15Apr 30, 2024 12:4049,466462,434,339410,566,41902,297,856
16Apr 30, 2024 12:3949,493467,988,605410,790,43202,183,168
17Apr 30, 2024 12:3749,515470,995,698410,971,38102,301,952
18Apr 30, 2024 12:4049,532482,514,332411,113,74202,179,072