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 listJul 20, 2022 16:29Robert BurkeRobert BurkeScore: 8,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:298,53991,986,88569,873,000998,0002,277,376
2Jul 20, 2022 16:298,54192,707,13569,895,000998,0002,539,520
3Jul 20, 2022 16:298,54292,856,06269,899,000998,0002,428,928
4Jul 20, 2022 16:298,54389,854,21768,912,0001,997,0002,277,376
5Jul 20, 2022 16:298,54795,403,49169,942,000999,0002,433,024
6Jul 20, 2022 16:298,55092,182,56669,962,000999,0002,424,832
7Jul 20, 2022 16:298,55394,122,60268,995,0001,999,0002,428,928
8Jul 20, 2022 16:298,55397,603,28568,993,0001,999,0002,428,928
9Jul 20, 2022 16:298,56390,062,17970,076,0001,001,0002,277,376
10Jul 20, 2022 16:298,564100,647,82169,081,0002,002,0002,519,040
11Jul 20, 2022 16:298,56991,414,18370,123,0001,001,0002,433,024
12Jul 20, 2022 16:298,57093,722,58070,133,0001,001,0002,424,832
13Jul 20, 2022 16:299,002138,844,97974,715,78102,170,880
14Jul 20, 2022 16:299,039134,775,43275,026,10702,293,760
15Jul 20, 2022 16:299,048141,834,41675,094,42402,174,976