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 12:31GraceGraceScore: 8,336Success
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 12:318,29695,155,26867,863,000997,0002,277,376
2May 25, 2024 12:318,30496,993,83367,924,000998,0002,285,568
3May 25, 2024 12:318,31592,214,36867,016,0002,000,0002,285,568
4May 25, 2024 12:318,33091,929,56168,140,0001,002,0002,277,376
5May 25, 2024 12:318,33494,240,77668,170,0001,002,0002,285,568
6May 25, 2024 12:318,33492,477,96967,166,0002,004,0002,285,568
7May 25, 2024 12:318,33690,721,17567,182,0002,005,0002,285,568
8May 25, 2024 12:318,33696,968,90867,184,0002,005,0002,285,568
9May 25, 2024 12:318,33697,150,29767,183,0002,005,0002,269,184
10May 25, 2024 12:318,492122,710,42470,480,43502,301,952
11May 25, 2024 12:318,539139,501,51670,877,63302,289,664
12May 25, 2024 12:318,597135,520,73871,355,03102,285,568
13May 25, 2024 12:319,980106,766,00181,838,000998,0002,285,568
14May 25, 2024 12:319,986105,326,65480,889,0001,997,0002,265,088
15May 25, 2024 12:3110,122106,388,81183,010,0001,000,0002,273,280