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 10:23Robert BurkeRobert BurkeScore: 8,354Success
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 10:238,30290,538,68666,912,0001,997,0002,519,040
2Nov 6, 2023 10:238,31989,084,88268,046,0001,000,0002,277,376
3Nov 6, 2023 10:238,32192,366,20967,065,0002,001,0002,433,024
4Nov 6, 2023 10:238,32986,963,26468,133,0001,001,0002,424,832
5Nov 6, 2023 10:238,33097,195,31468,137,0001,002,0002,428,928
6Nov 6, 2023 10:238,33487,919,50668,167,0001,002,0002,539,520
7Nov 6, 2023 10:238,33889,433,27868,200,0001,002,0002,277,376
8Nov 6, 2023 10:238,35493,408,06567,328,0002,009,0002,277,376
9Nov 6, 2023 10:238,35995,629,18468,372,0001,005,0002,428,928
10Nov 6, 2023 10:238,37896,497,99269,541,00002,433,024
11Nov 6, 2023 10:238,387126,272,26569,616,18502,297,856
12Nov 6, 2023 10:238,38797,986,26468,601,0001,008,0002,428,928
13Nov 6, 2023 10:238,397133,290,94369,697,78402,252,800
14Nov 6, 2023 10:238,414124,101,06069,833,95502,297,856
15Nov 6, 2023 10:238,41793,012,14769,859,00002,428,928