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 1, 2023 16:58Hal FHal FScore: 6,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:586,60183,894,32851,802,0002,988,0002,490,368
2Jan 1, 2023 16:586,60877,572,06153,829,0001,015,0002,285,568
3Jan 1, 2023 16:586,62583,198,02151,985,0002,999,0002,277,376
4Jan 1, 2023 16:586,62678,695,68251,993,0002,999,0002,478,080
5Jan 1, 2023 16:586,65585,652,71952,224,0003,012,0002,473,984
6Jan 1, 2023 16:586,69182,058,30153,520,0002,019,0002,473,984
7Jan 1, 2023 16:586,72581,656,93252,826,0002,990,0002,478,080
8Jan 1, 2023 16:586,73681,045,38953,910,0001,996,0002,285,568
9Jan 1, 2023 16:586,73788,037,72652,924,0002,995,0002,285,568
10Jan 1, 2023 16:586,75483,749,76053,058,0003,003,0002,469,888
11Jan 1, 2023 16:586,81586,498,02354,541,0002,020,0002,285,568
12Jan 1, 2023 16:586,96790,136,99854,832,0002,990,0002,285,568
13Jan 1, 2023 16:587,089117,974,99258,840,29002,211,840
14Jan 1, 2023 16:587,404117,887,40061,451,27102,224,128
15Jan 1, 2023 16:587,799117,949,31364,733,42802,215,936