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 listJan 2, 2023 17:13Bernard TeoBernard TeoScore: 6,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 17:136,297111,119,10152,261,96102,281,472
2Jan 2, 2023 17:136,301118,543,38952,300,91902,281,472
3Jan 2, 2023 17:136,322117,518,50352,475,99502,289,664
4Jan 2, 2023 17:136,42974,708,80752,355,0001,006,0002,408,448
5Jan 2, 2023 17:136,43374,767,99852,385,0001,007,0002,273,280
6Jan 2, 2023 17:136,43678,271,44053,417,00002,396,160
7Jan 2, 2023 17:136,43775,553,79252,417,0001,008,0002,273,280
8Jan 2, 2023 17:136,43877,745,27352,431,0001,008,0002,396,160
9Jan 2, 2023 17:136,44477,877,59152,479,0001,009,0002,273,280
10Jan 2, 2023 17:136,44477,057,04152,474,0001,009,0002,400,256
11Jan 2, 2023 17:136,44577,697,46453,495,00002,273,280
12Jan 2, 2023 17:136,44585,676,47452,484,0001,009,0002,273,280
13Jan 2, 2023 17:136,44679,124,38352,490,0001,009,0002,392,064
14Jan 2, 2023 17:136,44778,891,57952,503,0001,009,0002,404,352
15Jan 2, 2023 17:136,44777,681,70453,508,00002,273,280