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 listOct 22, 2023 23:02sliceteamsliceteamScore: 8,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 23:028,54695,248,56168,935,0001,998,0002,273,280
2Oct 22, 2023 23:028,55491,794,70768,998,0001,999,0002,396,160
3Oct 22, 2023 23:028,56496,810,39170,084,0001,001,0002,273,280
4Oct 22, 2023 23:028,56893,985,42370,115,0001,001,0002,392,064
5Oct 22, 2023 23:028,57595,448,48170,172,0001,002,0002,392,064
6Oct 22, 2023 23:028,57998,879,15870,205,0001,002,0002,400,256
7Oct 22, 2023 23:028,580100,071,30069,206,0002,005,0002,273,280
8Oct 22, 2023 23:028,58098,079,95569,208,0002,006,0002,273,280
9Oct 22, 2023 23:028,58293,295,66470,225,0001,003,0002,396,160
10Oct 22, 2023 23:028,58394,667,23869,232,0002,006,0002,273,280
11Oct 22, 2023 23:028,58997,695,42669,284,0002,008,0002,273,280
12Oct 22, 2023 23:028,61396,781,78469,500,0001,985,0002,400,256
13Oct 22, 2023 23:028,763139,388,56272,735,29802,281,472
14Oct 22, 2023 23:028,774137,401,46372,824,30102,281,472
15Oct 22, 2023 23:028,894127,832,45873,816,50202,285,568