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 listMay 25, 2024 11:10GraceGraceScore: 8,530Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:107,919130,381,47765,730,27602,293,760
2May 25, 2024 11:108,137137,585,03767,538,89702,289,664
3May 25, 2024 11:108,148127,146,95167,630,19202,281,472
4May 25, 2024 11:108,51398,879,65169,647,0001,009,0002,260,992
5May 25, 2024 11:108,517100,187,36470,693,00002,285,568
6May 25, 2024 11:108,518100,415,74569,689,0001,009,0002,285,568
7May 25, 2024 11:108,52394,649,66068,745,0001,992,0002,285,568
8May 25, 2024 11:108,53099,199,67569,801,000997,0002,285,568
9May 25, 2024 11:108,530100,071,26469,801,000997,0002,387,968
10May 25, 2024 11:108,53198,247,34969,808,000997,0002,285,568
11May 25, 2024 11:108,53495,671,03468,834,0001,995,0002,269,184
12May 25, 2024 11:108,53699,140,65668,851,0001,995,0002,277,376
13May 25, 2024 11:108,53795,310,37768,860,0001,995,0002,265,088
14May 25, 2024 11:108,54092,375,31368,890,0001,996,0002,269,184
15May 25, 2024 11:108,54495,103,38468,919,0001,997,0002,285,568