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:11Bernard TeoBernard TeoScore: 8,029Success
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:117,989118,333,11366,305,70102,277,376
2Jan 2, 2023 17:118,00694,564,67466,447,00002,273,280
3Jan 2, 2023 17:118,01191,565,46565,484,0001,007,0002,404,352
4Jan 2, 2023 17:118,01288,708,41665,494,0001,007,0002,273,280
5Jan 2, 2023 17:118,01389,912,85365,501,0001,007,0002,392,064
6Jan 2, 2023 17:118,01491,629,99164,531,0001,985,0002,273,280
7Jan 2, 2023 17:118,01487,912,65265,511,0001,007,0002,404,352
8Jan 2, 2023 17:118,02991,446,29365,628,0001,009,0002,273,280
9Jan 2, 2023 17:118,04393,339,55864,769,0001,992,0002,404,352
10Jan 2, 2023 17:118,05190,212,84065,825,000997,0002,400,256
11Jan 2, 2023 17:118,05690,250,04665,868,000998,0002,273,280
12Jan 2, 2023 17:118,07495,716,56666,018,0001,000,0002,273,280
13Jan 2, 2023 17:118,09090,822,24165,139,0002,004,0002,396,160
14Jan 2, 2023 17:118,157142,293,20467,705,89202,289,664
15Jan 2, 2023 17:118,164143,527,35567,758,74802,256,896