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 listNov 6, 2023 03:13sliceteamsliceteamScore: 8,312Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2023 03:138,268100,020,74367,629,000994,0002,396,160
2Nov 6, 2023 03:138,28995,986,57467,798,000997,0002,396,160
3Nov 6, 2023 03:138,29097,890,28166,812,0001,994,0002,519,040
4Nov 6, 2023 03:138,29295,189,14967,825,000997,0002,273,280
5Nov 6, 2023 03:138,29397,881,77666,833,0001,995,0002,273,280
6Nov 6, 2023 03:138,30089,603,58067,896,000998,0002,273,280
7Nov 6, 2023 03:138,30192,488,24467,899,000998,0002,273,280
8Nov 6, 2023 03:138,31291,934,79466,993,0001,999,0002,404,352
9Nov 6, 2023 03:138,41193,322,34868,817,000997,0002,400,256
10Nov 6, 2023 03:138,41893,204,25868,869,000998,0002,273,280
11Nov 6, 2023 03:138,434136,003,19170,002,38502,273,280
12Nov 6, 2023 03:138,48492,722,22570,420,00002,273,280
13Nov 6, 2023 03:138,561131,395,11471,058,48402,285,568
14Nov 6, 2023 03:138,598103,619,00570,356,0001,005,0002,273,280
15Nov 6, 2023 03:138,687142,544,33172,100,77102,281,472