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 listDec 31, 2022 16:55Jack FrigaardJack FrigaardScore: 4,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 16:554,95770,520,95838,134,0003,010,0002,453,504
2Dec 31, 2022 16:554,96162,963,26039,167,0002,008,0002,523,136
3Dec 31, 2022 16:554,96262,497,45839,175,0002,009,0002,461,696
4Dec 31, 2022 16:554,96363,255,14038,179,0003,014,0002,523,136
5Dec 31, 2022 16:554,96366,366,58238,180,0003,014,0002,519,040
6Dec 31, 2022 16:554,97367,999,01938,256,0003,020,0002,260,992
7Dec 31, 2022 16:554,97573,254,95839,277,0002,014,0002,260,992
8Dec 31, 2022 16:554,98369,021,01338,337,0003,026,0002,260,992
9Dec 31, 2022 16:555,00066,387,19240,487,0001,012,0002,260,992
10Dec 31, 2022 16:555,04168,422,50139,846,0001,992,0002,260,992
11Dec 31, 2022 16:555,04174,079,34540,847,000996,0002,260,992
12Dec 31, 2022 16:555,05069,652,08538,924,0002,994,0002,453,504
13Dec 31, 2022 16:555,263111,681,93643,684,48702,207,744
14Dec 31, 2022 16:555,311116,269,59344,078,60902,199,552
15Dec 31, 2022 16:555,315125,646,72344,117,73402,199,552