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 listApr 29, 2024 19:50Joad NacerJoad NacerScore: 8,145Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 19:507,977126,448,34466,210,54502,269,184
2Apr 29, 2024 19:508,000129,459,36966,396,43402,273,280
3Apr 29, 2024 19:508,032142,812,79366,667,49902,277,376
4Apr 29, 2024 19:508,13693,154,70866,524,0001,007,0002,285,568
5Apr 29, 2024 19:508,13892,659,32266,538,0001,008,0002,285,568
6Apr 29, 2024 19:508,14291,601,51766,568,0001,008,0002,285,568
7Apr 29, 2024 19:508,14599,243,83067,600,00002,285,568
8Apr 29, 2024 19:508,14593,625,43966,595,0001,009,0002,285,568
9Apr 29, 2024 19:508,14996,797,93266,630,0001,009,0002,285,568
10Apr 29, 2024 19:508,18790,851,86565,953,0001,998,0002,285,568
11Apr 29, 2024 19:508,66895,125,71369,946,0001,998,0002,400,256
12Apr 29, 2024 19:508,989100,216,43973,602,0001,008,0002,285,568
13Apr 29, 2024 19:509,00899,064,68772,777,0001,993,0002,269,184
14Apr 29, 2024 19:509,05697,671,30574,162,0001,002,0002,260,992
15Apr 29, 2024 19:509,05698,998,31374,161,0001,002,0002,285,568