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 23:02Robert BurkeRobert BurkeScore: 8,216Success
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 23:028,18494,473,84665,927,0001,997,0002,527,232
2Jul 14, 2022 23:028,19790,687,12667,037,0001,000,0002,416,640
3Jul 14, 2022 23:028,19989,175,46467,052,0001,000,0002,424,832
4Jul 14, 2022 23:028,20391,137,95266,081,0002,002,0002,527,232
5Jul 14, 2022 23:028,20493,432,85967,093,0001,001,0002,424,832
6Jul 14, 2022 23:028,20893,600,72167,123,0001,001,0002,416,640
7Jul 14, 2022 23:028,21286,489,14566,158,0002,004,0002,527,232
8Jul 14, 2022 23:028,21697,438,66367,193,0001,002,0002,531,328
9Jul 14, 2022 23:028,21692,845,46967,188,0001,002,0002,531,328
10Jul 14, 2022 23:028,22089,566,63667,219,0001,003,0002,420,736
11Jul 14, 2022 23:028,22089,863,49467,222,0001,003,0002,506,752
12Jul 14, 2022 23:028,23092,509,10267,309,0001,004,0002,531,328
13Jul 14, 2022 23:028,813124,245,60773,148,75402,174,976
14Jul 14, 2022 23:028,821126,848,70373,210,73602,170,880
15Jul 14, 2022 23:028,833133,983,21073,314,46202,293,760