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 9, 2024 21:39Joad NacerJoad NacerScore: 7,987Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:397,95791,275,30564,043,0002,001,0002,285,568
2May 9, 2024 21:397,96192,549,75365,074,0001,001,0002,285,568
3May 9, 2024 21:427,96189,071,82464,078,0002,002,0002,285,568
4May 9, 2024 21:397,96390,790,34964,093,0002,002,0002,510,848
5May 9, 2024 21:397,96392,538,10465,090,0001,001,0002,285,568
6May 9, 2024 21:427,96592,917,30264,108,0002,003,0002,285,568
7May 9, 2024 21:427,96688,213,33464,114,0002,003,0002,285,568
8May 9, 2024 21:427,96790,215,43364,124,0002,003,0002,265,088
9May 9, 2024 21:397,96889,725,51164,129,0002,004,0002,269,184
10May 9, 2024 21:397,96889,836,59964,132,0002,004,0002,285,568
11May 9, 2024 21:427,97587,697,79764,191,0002,005,0002,285,568
12May 9, 2024 21:397,98289,844,18965,245,0001,003,0002,285,568
13May 9, 2024 21:427,98788,558,52064,284,0002,008,0002,519,040
14May 9, 2024 21:398,01189,880,03365,486,0001,007,0002,273,280
15May 9, 2024 21:428,01889,112,65665,539,0001,008,0002,269,184
16May 9, 2024 21:428,04792,898,28765,797,000996,0002,285,568
17May 9, 2024 21:428,05494,565,11865,849,000997,0002,285,568
18May 9, 2024 21:398,10194,392,85465,228,0002,007,0002,363,392
19May 9, 2024 21:428,315133,497,62069,011,95702,252,800
20May 9, 2024 21:398,422141,948,01369,904,83002,666,496
21May 9, 2024 21:428,425148,532,22869,927,31002,265,088
22May 9, 2024 21:428,487139,149,97770,441,50002,256,896
23May 9, 2024 21:398,579137,566,18871,202,61102,662,400
24May 9, 2024 21:399,780140,582,23681,170,85102,531,328