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:08Bernard TeoBernard TeoScore: 8,055Success
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:087,642132,326,91063,432,20502,285,568
2Jan 2, 2023 17:087,648130,449,53963,476,18102,281,472
3Jan 2, 2023 17:087,819128,256,95764,897,75402,277,376
4Jan 2, 2023 17:088,05094,568,13766,816,00002,273,280
5Jan 2, 2023 17:088,05190,587,89364,826,0001,994,0002,404,352
6Jan 2, 2023 17:088,05295,499,80366,829,00002,273,280
7Jan 2, 2023 17:088,05292,739,59265,832,000997,0002,400,256
8Jan 2, 2023 17:088,05596,748,62164,862,0001,995,0002,400,256
9Jan 2, 2023 17:088,05991,179,99864,894,0001,996,0002,273,280
10Jan 2, 2023 17:088,06088,255,58865,896,000998,0002,273,280
11Jan 2, 2023 17:088,06089,475,44464,903,0001,997,0002,400,256
12Jan 2, 2023 17:088,06389,313,94764,925,0001,997,0002,273,280
13Jan 2, 2023 17:088,06591,460,77265,938,000999,0002,273,280
14Jan 2, 2023 17:088,06689,021,75064,946,0001,998,0002,273,280
15Jan 2, 2023 17:088,07295,053,68664,995,0001,999,0002,273,280