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 14, 2022 22:44Robert BurkeRobert BurkeScore: 8,207Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2022 22:448,19693,006,82766,026,0002,000,0002,428,928
2Jul 14, 2022 22:448,19789,674,06967,039,0001,000,0002,424,832
3Jul 14, 2022 22:448,20093,512,13367,064,0001,000,0002,269,184
4Jul 14, 2022 22:448,20188,840,29266,068,0002,002,0002,531,328
5Jul 14, 2022 22:448,20493,482,50366,094,0002,002,0002,428,928
6Jul 14, 2022 22:448,20489,259,96967,094,0001,001,0002,506,752
7Jul 14, 2022 22:448,20789,986,57767,113,0001,001,0002,424,832
8Jul 14, 2022 22:448,20789,241,48167,113,0001,001,0002,424,832
9Jul 14, 2022 22:448,21588,291,44367,181,0001,002,0002,269,184
10Jul 14, 2022 22:448,21690,262,59767,190,0001,002,0002,424,832
11Jul 14, 2022 22:448,22494,043,04466,255,0002,007,0002,424,832
12Jul 14, 2022 22:448,29498,166,51666,849,0001,995,0002,269,184
13Jul 14, 2022 22:448,807127,466,38973,101,67502,248,704
14Jul 14, 2022 22:448,819122,877,66273,196,22802,297,856
15Jul 14, 2022 22:448,820127,733,41473,204,18502,297,856