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 17:59Joad NacerJoad NacerScore: 7,925Success
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 17:597,839118,312,22465,064,49202,281,472
2Apr 29, 2024 17:597,839122,265,42565,060,41002,265,088
3Apr 29, 2024 17:597,864128,376,34465,267,34102,269,184
4Apr 29, 2024 17:597,91094,348,91463,660,0001,989,0002,273,280
5Apr 29, 2024 17:597,91294,865,26764,663,0001,010,0002,531,328
6Apr 29, 2024 17:597,91592,406,90765,693,00002,285,568
7Apr 29, 2024 17:597,92591,742,39663,784,0001,993,0002,273,280
8Apr 29, 2024 17:597,92589,334,13563,788,0001,993,0002,260,992
9Apr 29, 2024 17:597,92692,333,83463,795,0001,993,0002,273,280
10Apr 29, 2024 17:597,92791,366,32963,799,0001,993,0002,265,088
11Apr 29, 2024 17:597,94991,832,88463,978,0001,999,0002,285,568
12Apr 29, 2024 17:597,97790,144,91764,201,0002,006,0002,285,568
13Apr 29, 2024 17:598,89698,249,32371,842,0001,995,0002,519,040
14Apr 29, 2024 17:598,92198,677,92473,045,0001,000,0002,285,568
15Apr 29, 2024 17:599,03598,273,63172,994,0001,999,0002,519,040