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 11, 2023 04:14sliceteamsliceteamScore: 10,458Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 04:1410,052148,348,16583,429,82802,285,568
2Dec 11, 2023 04:1410,058149,294,08483,484,75902,277,376
3Dec 11, 2023 04:1410,070142,991,50983,579,67802,269,184
4Dec 11, 2023 04:1410,419109,186,47786,480,00002,273,280
5Dec 11, 2023 04:1410,427116,946,92985,536,0001,006,0002,273,280
6Dec 11, 2023 04:1410,441119,010,41285,657,0001,007,0002,404,352
7Dec 11, 2023 04:1410,458119,708,31084,804,0001,995,0002,273,280
8Dec 11, 2023 04:1410,458110,094,85584,808,0001,995,0002,510,848
9Dec 11, 2023 04:1410,463120,900,92785,847,000998,0002,273,280
10Dec 11, 2023 04:1410,465112,695,56884,867,0001,996,0002,273,280
11Dec 11, 2023 04:1410,467111,923,20084,876,0001,997,0002,273,280
12Dec 11, 2023 04:1410,490110,063,51585,067,0002,001,0002,392,064
13Dec 11, 2023 04:1410,493110,853,02285,092,0002,002,0002,273,280
14Dec 11, 2023 04:1410,520111,103,61486,311,0001,003,0002,506,752
15Dec 11, 2023 04:1410,653114,162,87186,434,0001,986,0002,273,280